From 30acd46be530a18bc5ada6cfa81ae382ac33301b Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Fri, 27 Aug 2021 11:10:50 +0700 Subject: [PATCH] add state check assert routine --- txpool/fetch.go | 1 + 1 file changed, 1 insertion(+) diff --git a/txpool/fetch.go b/txpool/fetch.go index 7c53e84f5..49e6226bb 100644 --- a/txpool/fetch.go +++ b/txpool/fetch.go @@ -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") } }