mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-07 19:41:19 +00:00
add state check assert routine
This commit is contained in:
parent
8dd3f3c80e
commit
3e76df7877
@ -664,13 +664,13 @@ func (sc *SendersCache) flush(tx kv.RwTx, byNonce *ByNonce, sendersWithoutTransa
|
||||
binary.BigEndian.PutUint64(encID, id)
|
||||
binary.BigEndian.PutUint64(v, info.nonce)
|
||||
v = append(v[:8], info.balance.Bytes()...)
|
||||
currentV, err := tx.GetOne(kv.PooledSender, encID)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if currentV != nil && bytes.Equal(currentV, v) {
|
||||
continue
|
||||
}
|
||||
//currentV, err := tx.GetOne(kv.PooledSender, encID)
|
||||
//if err != nil {
|
||||
// return err
|
||||
//}
|
||||
//if currentV != nil && bytes.Equal(currentV, v) {
|
||||
// continue
|
||||
//}
|
||||
if err := tx.Put(kv.PooledSender, encID, v); err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user