mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-05 18:42:19 +00:00
add state check assert routine
This commit is contained in:
parent
d9ea4ae375
commit
72c61acd6f
@ -224,13 +224,6 @@ func (sc *SendersCache) onNewTxs(tx kv.Tx, newTxs TxSlots) (cacheMisses map[uint
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if ASSERT {
|
||||
if len(cacheMisses) > 0 {
|
||||
for i, j := range cacheMisses {
|
||||
fmt.Printf("cache misses: %d,%x\n", i, j)
|
||||
}
|
||||
}
|
||||
}
|
||||
return cacheMisses, nil
|
||||
}
|
||||
func (sc *SendersCache) loadFromCore(coreTx kv.Tx, toLoad map[uint64]string) error {
|
||||
@ -240,11 +233,6 @@ func (sc *SendersCache) loadFromCore(coreTx kv.Tx, toLoad map[uint64]string) err
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if info == nil {
|
||||
if ASSERT {
|
||||
fmt.Printf("core returned nil: %d,%x\n", id, toLoad[id])
|
||||
}
|
||||
}
|
||||
diff[id] = info
|
||||
}
|
||||
sc.lock.Lock()
|
||||
|
Loading…
Reference in New Issue
Block a user