add state check assert routine

This commit is contained in:
alex.sharov 2021-08-28 11:26:39 +07:00
parent 6085ab63c4
commit e3e4e5798c

View File

@ -1122,11 +1122,11 @@ func (p *TxPool) flush(tx kv.RwTx, senders *SendersCache) (evicted uint64, err e
copy(hashID[:], k)
_, isLocalTx := p.localsHistory.Get(hashID)
txs.isLocal[i] = isLocalTx
i++
if !p.txNonce2Tx.has(newMetaTx(txs.txs[i], txs.isLocal[i])) {
panic("aaaaaa")
}
i++
return nil
}); err != nil {
panic(err)