From 72c61acd6f397f69f09eac6ba80b750b4c6f345f Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Sat, 28 Aug 2021 14:47:25 +0700 Subject: [PATCH] add state check assert routine --- txpool/pool.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/txpool/pool.go b/txpool/pool.go index c13c2bbff..12bd001e4 100644 --- a/txpool/pool.go +++ b/txpool/pool.go @@ -224,13 +224,6 @@ func (sc *SendersCache) onNewTxs(tx kv.Tx, newTxs TxSlots) (cacheMisses map[uint if err != nil { return nil, err } - if ASSERT { - if len(cacheMisses) > 0 { - for i, j := range cacheMisses { - fmt.Printf("cache misses: %d,%x\n", i, j) - } - } - } return cacheMisses, nil } func (sc *SendersCache) loadFromCore(coreTx kv.Tx, toLoad map[uint64]string) error { @@ -240,11 +233,6 @@ func (sc *SendersCache) loadFromCore(coreTx kv.Tx, toLoad map[uint64]string) err if err != nil { return err } - if info == nil { - if ASSERT { - fmt.Printf("core returned nil: %d,%x\n", id, toLoad[id]) - } - } diff[id] = info } sc.lock.Lock()