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
8901748c36
commit
cf7a346d16
@ -1131,12 +1131,9 @@ func (p *TxPool) fromDB(ctx context.Context, tx kv.RwTx, coreTx kv.Tx) error {
|
||||
return err
|
||||
}
|
||||
if len(vv) == 0 {
|
||||
tx.ForEach(kv.PooledSenderIDToAdress, nil, func(kkk, vvvv []byte) error {
|
||||
if bytes.HasPrefix(kkk, v[:6]) {
|
||||
fmt.Printf("found:%x,%x\n", kkk, vvvv)
|
||||
}
|
||||
return nil
|
||||
})
|
||||
cc, _ := tx.Cursor(kv.PooledSenderIDToAdress)
|
||||
last, lastAddr, _ := cc.Last()
|
||||
fmt.Printf("last: %d,%x\n", binary.BigEndian.Uint64(last), lastAddr)
|
||||
fmt.Printf("now: %d\n", p.senders.senderID)
|
||||
fmt.Printf("not foundd: %d,%x,%x,%x\n", binary.BigEndian.Uint64(v[:8]), k, v, vv)
|
||||
panic("no-no")
|
||||
|
Loading…
Reference in New Issue
Block a user