add state check assert routine

This commit is contained in:
alex.sharov 2021-08-28 11:15:05 +07:00
parent d8ef509ab1
commit c5cf532a2c

View File

@ -617,6 +617,7 @@ func (sc *SendersCache) flush(tx kv.RwTx, byNonce *ByNonce, sendersWithoutTransa
return evicted, err
}
}
fmt.Printf("justDeleted:%d, justInserted:%d\n", justDeleted, justInserted)
if ASSERT {
_ = tx.ForEach(kv.PooledTransaction, nil, func(k, v []byte) error {
vv, err := tx.GetOne(kv.PooledSenderIDToAdress, v[:8])