more fixes

This commit is contained in:
alex.sharov 2021-08-06 11:44:40 +07:00
parent db8cbe6244
commit 030b518ceb
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -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())
//}