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
5f20d8ba28
commit
a041261237
@ -1138,11 +1138,13 @@ 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(k, v []byte) error {
|
tx.ForEach(kv.PooledSenderIDToAdress, nil, func(k, vvvv []byte) error {
|
||||||
fmt.Printf("found:%x,%x\n", k, v)
|
if bytes.HasPrefix(k, v[:7]) {
|
||||||
|
fmt.Printf("found:%x,%x\n", k, vvvv)
|
||||||
|
}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
fmt.Printf("aa: %x,%x,%x\n", k, v, vv)
|
fmt.Printf("not foundd: %x,%x,%x\n", k, v, vv)
|
||||||
panic("no-no")
|
panic("no-no")
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user