diff --git a/txpool/pool.go b/txpool/pool.go index 9d7a7d997..60ec56c38 100644 --- a/txpool/pool.go +++ b/txpool/pool.go @@ -568,6 +568,13 @@ func (sc *SendersCache) flush(tx kv.RwTx, byNonce *ByNonce) error { if byNonce.count(binary.BigEndian.Uint64(id)) > 0 { return nil } + tx.ForEach(kv.PooledTransaction, nil, func(k, v []byte) error { + senderID := binary.BigEndian.Uint64(v[:8]) + if senderID == binary.BigEndian.Uint64(id) { + panic("why?") + } + return nil + }) if err := tx.Delete(kv.PooledSenderID, addr, nil); err != nil { return err }