From 345aafcc3fe05383a4c821f948efe4cd3058ccfc Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Sat, 28 Aug 2021 14:27:04 +0700 Subject: [PATCH] add state check assert routine --- txpool/pool.go | 1 + 1 file changed, 1 insertion(+) diff --git a/txpool/pool.go b/txpool/pool.go index 16b7ac001..1627d03e8 100644 --- a/txpool/pool.go +++ b/txpool/pool.go @@ -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)