mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-20 17:31:11 +00:00
add state check assert routine
This commit is contained in:
parent
e3e4e5798c
commit
422abc394b
@ -1110,14 +1110,14 @@ func (p *TxPool) flush(tx kv.RwTx, senders *SendersCache) (evicted uint64, err e
|
||||
txs.txs[i].rlp = nil // means that we don't need store it in db anymore
|
||||
txs.txs[i].senderID = binary.BigEndian.Uint64(v)
|
||||
|
||||
senderAddr, err := tx.GetOne(kv.PooledSenderIDToAdress, v[:8])
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if len(senderAddr) == 0 {
|
||||
panic("must not happen")
|
||||
}
|
||||
copy(txs.senders.At(i), senderAddr)
|
||||
//senderAddr, err := tx.GetOne(kv.PooledSenderIDToAdress, v[:8])
|
||||
//if err != nil {
|
||||
// return err
|
||||
//}
|
||||
//if len(senderAddr) == 0 {
|
||||
// panic("must not happen")
|
||||
//}
|
||||
//copy(txs.senders.At(i), senderAddr)
|
||||
//bkock num = binary.BigEndian.Uint64(v[8:])
|
||||
copy(hashID[:], k)
|
||||
_, isLocalTx := p.localsHistory.Get(hashID)
|
||||
|
Loading…
x
Reference in New Issue
Block a user