From 030b518cebbc6720c33ec800e5d6de2b249cb35f Mon Sep 17 00:00:00 2001 From: "alex.sharov" Date: Fri, 6 Aug 2021 11:44:40 +0700 Subject: [PATCH] more fixes --- txpool/pool.go | 1 - txpool/pool_fuzz_test.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/txpool/pool.go b/txpool/pool.go index 301d46ae0..727e6317c 100644 --- a/txpool/pool.go +++ b/txpool/pool.go @@ -673,7 +673,6 @@ func (p *SubPool) UnsafeRemove(i *MetaTx) { p.worst.Pop() p.best.Swap(i.bestIndex, p.best.Len()-1) p.best.Pop() - return } func (p *SubPool) UnsafeAdd(i *MetaTx, subPoolType SubPoolType) { i.currentSubPool = subPoolType diff --git a/txpool/pool_fuzz_test.go b/txpool/pool_fuzz_test.go index cd114f2ff..a28adaaa1 100644 --- a/txpool/pool_fuzz_test.go +++ b/txpool/pool_fuzz_test.go @@ -264,7 +264,7 @@ func FuzzOnNewBlocks10(f *testing.F) { pool.senderIDs = senderIDs check := func(unwindTxs, minedTxs TxSlots, msg string) { pending, baseFee, queued := pool.pending, pool.baseFee, pool.queued - //if pending.Len() > 0 || baseFee.Len() > 0 || queued.Len() > 0 { + //if pending.Len() > 10 && baseFee.Len() > 10 && queued.Len() > 10 { // fmt.Printf("len: %d,%d,%d\n", pending.Len(), baseFee.Len(), queued.Len()) //}