From 4a4b23dc157950adfc892319a69ce11b6954d33b Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Sat, 28 Aug 2021 14:53:42 +0700 Subject: [PATCH] add state check assert routine --- txpool/pool.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/txpool/pool.go b/txpool/pool.go index c028c5106..6ca8b8912 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 { @@ -1160,7 +1153,6 @@ func (p *TxPool) flushLocked(tx kv.RwTx) (evicted uint64, err error) { }); err != nil { panic(err) } - } binary.BigEndian.PutUint64(encID, p.protocolBaseFee.Load())