From 0e036160c37f4517157fa37a5551f41161483bec Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Fri, 27 Aug 2021 10:08:45 +0700 Subject: [PATCH] add state check assert routine --- txpool/pool.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/txpool/pool.go b/txpool/pool.go index 60ec56c38..1f422fb1a 100644 --- a/txpool/pool.go +++ b/txpool/pool.go @@ -565,6 +565,9 @@ func (sc *SendersCache) flush(tx kv.RwTx, byNonce *ByNonce) error { if _, ok := sc.senderIDs[string(addr)]; ok { return nil } + if _, ok := sc.senderInfo[binary.BigEndian.Uint64(id)]; ok { + return nil + } if byNonce.count(binary.BigEndian.Uint64(id)) > 0 { return nil }