mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-09 12:31:21 +00:00
add state check assert routine
This commit is contained in:
parent
f943cf959e
commit
92fbed3d72
@ -1007,7 +1007,7 @@ func (p *TxPool) flush(tx kv.RwTx, senders *SendersCache) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
counts := map[uint64]uint64{}
|
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)
|
id := binary.BigEndian.Uint64(k)
|
||||||
count := p.txNonce2Tx.count(id)
|
count := p.txNonce2Tx.count(id)
|
||||||
_, ok := counts[count]
|
_, ok := counts[count]
|
||||||
|
Loading…
Reference in New Issue
Block a user