add state check assert routine

This commit is contained in:
alex.sharov 2021-08-28 14:27:04 +07:00
parent b8b6f5d6a3
commit 345aafcc3f

View File

@ -195,6 +195,7 @@ func (sc *SendersCache) info(id uint64, tx kv.Tx) (*senderInfo, error) {
return nil, err
}
if len(v) == 0 {
panic("all senders must be loaded in advance")
return nil, nil // don't fallback to core db, it will be manually done in right place
}
balance := uint256.NewInt(0)