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
92740a3935
commit
0e42c04b6c
@ -640,12 +640,11 @@ func (sc *SendersCache) flush(tx kv.RwTx, byNonce *ByNonce, sendersWithoutTransa
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if len(vv) == 0 {
|
if len(vv) == 0 {
|
||||||
tx.ForEach(kv.PooledSenderIDToAdress, nil, func(k, vvvv []byte) error {
|
cc, _ := tx.Cursor(kv.PooledSenderIDToAdress)
|
||||||
if bytes.HasPrefix(k, v[:7]) {
|
last, lastAddr, _ := cc.Last()
|
||||||
fmt.Printf("found:%x,%x\n", k, vvvv)
|
fmt.Printf("last: %d,%x\n", binary.BigEndian.Uint64(last), lastAddr)
|
||||||
}
|
fmt.Printf("now: %d\n", sc.senderID)
|
||||||
return nil
|
fmt.Printf("not foundd: %d,%x,%x,%x\n", binary.BigEndian.Uint64(v[:8]), k, v, vv)
|
||||||
})
|
|
||||||
fmt.Printf("aa: %x,%x,%x\n", k, v, vv)
|
fmt.Printf("aa: %x,%x,%x\n", k, v, vv)
|
||||||
panic("no-no")
|
panic("no-no")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user