mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-07 11:32:20 +00:00
add state check assert routine
This commit is contained in:
parent
9ce4588a7d
commit
e7b6bc14f2
@ -1036,6 +1036,11 @@ func (p *TxPool) flush(tx kv.RwTx, senders *SendersCache) error {
|
|||||||
if metaTx.Tx.rlp == nil {
|
if metaTx.Tx.rlp == nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
if ASSERT {
|
||||||
|
if p.txNonce2Tx.count(metaTx.Tx.senderID) == 0 {
|
||||||
|
panic("here i am")
|
||||||
|
}
|
||||||
|
}
|
||||||
v = ensureEnoughSize(v, 8+8+len(metaTx.Tx.rlp))
|
v = ensureEnoughSize(v, 8+8+len(metaTx.Tx.rlp))
|
||||||
binary.BigEndian.PutUint64(v, metaTx.Tx.senderID)
|
binary.BigEndian.PutUint64(v, metaTx.Tx.senderID)
|
||||||
binary.BigEndian.PutUint64(v[8:], 0) // block num - timestamp
|
binary.BigEndian.PutUint64(v[8:], 0) // block num - timestamp
|
||||||
|
Loading…
Reference in New Issue
Block a user