add state check assert routine

This commit is contained in:
alex.sharov 2021-08-27 09:36:12 +07:00
parent f943cf959e
commit 92fbed3d72

View File

@ -1007,7 +1007,7 @@ func (p *TxPool) flush(tx kv.RwTx, senders *SendersCache) error {
}
counts := map[uint64]uint64{}
tx.ForEach(kv.PooledSenderID, nil, func(k, v []byte) error {
tx.ForEach(kv.PooledSenderIDToAdress, nil, func(k, v []byte) error {
id := binary.BigEndian.Uint64(k)
count := p.txNonce2Tx.count(id)
_, ok := counts[count]