add state check assert routine

This commit is contained in:
alex.sharov 2021-08-27 10:08:45 +07:00
parent fbe84f8d5f
commit 0e036160c3

View File

@ -565,6 +565,9 @@ func (sc *SendersCache) flush(tx kv.RwTx, byNonce *ByNonce) error {
if _, ok := sc.senderIDs[string(addr)]; ok {
return nil
}
if _, ok := sc.senderInfo[binary.BigEndian.Uint64(id)]; ok {
return nil
}
if byNonce.count(binary.BigEndian.Uint64(id)) > 0 {
return nil
}