mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-08 03:51:20 +00:00
add state check assert routine
This commit is contained in:
parent
6085ab63c4
commit
e3e4e5798c
@ -1122,11 +1122,11 @@ func (p *TxPool) flush(tx kv.RwTx, senders *SendersCache) (evicted uint64, err e
|
|||||||
copy(hashID[:], k)
|
copy(hashID[:], k)
|
||||||
_, isLocalTx := p.localsHistory.Get(hashID)
|
_, isLocalTx := p.localsHistory.Get(hashID)
|
||||||
txs.isLocal[i] = isLocalTx
|
txs.isLocal[i] = isLocalTx
|
||||||
i++
|
|
||||||
|
|
||||||
if !p.txNonce2Tx.has(newMetaTx(txs.txs[i], txs.isLocal[i])) {
|
if !p.txNonce2Tx.has(newMetaTx(txs.txs[i], txs.isLocal[i])) {
|
||||||
panic("aaaaaa")
|
panic("aaaaaa")
|
||||||
}
|
}
|
||||||
|
i++
|
||||||
return nil
|
return nil
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user