mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-08 12:01:20 +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
|
return err
|
||||||
}
|
}
|
||||||
if len(vv) == 0 {
|
if len(vv) == 0 {
|
||||||
tx.ForEach(kv.PooledSenderIDToAdress, nil, func(kkk, vvvv []byte) error {
|
cc, _ := tx.Cursor(kv.PooledSenderIDToAdress)
|
||||||
if bytes.HasPrefix(kkk, v[:6]) {
|
last, lastAddr, _ := cc.Last()
|
||||||
fmt.Printf("found:%x,%x\n", kkk, vvvv)
|
fmt.Printf("last: %d,%x\n", binary.BigEndian.Uint64(last), lastAddr)
|
||||||
}
|
|
||||||
return nil
|
|
||||||
})
|
|
||||||
fmt.Printf("now: %d\n", p.senders.senderID)
|
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)
|
fmt.Printf("not foundd: %d,%x,%x,%x\n", binary.BigEndian.Uint64(v[:8]), k, v, vv)
|
||||||
panic("no-no")
|
panic("no-no")
|
||||||
|
Loading…
Reference in New Issue
Block a user