add state check assert routine

This commit is contained in:
alex.sharov 2021-08-27 11:10:50 +07:00
parent a7f6d54571
commit 30acd46be5

View File

@ -319,6 +319,7 @@ func (f *Fetch) handleInboundMessage(ctx context.Context, req *sentry.InboundMes
if ASSERT {
for i := 0; i < txs.senders.Len(); i++ {
if bytes.Equal(txs.senders.At(i), EmptyAddr[:]) {
fmt.Printf("here: %s, %x\n", req.Id, req.Data)
panic("here")
}
}