From 059547b25d1cea5a634b16f59c15c64d4f0a7b45 Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Sat, 28 Aug 2021 14:27:48 +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 1627d03e8..f0aad9083 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 { + fmt.Printf("sender not loaded in advance: %d\n", id) 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 }