added in some cuddling changes to address the linter / CI test fails

This commit is contained in:
Alex 2023-04-28 16:25:08 -07:00
parent 1e926cfad9
commit 7d765e03b0
2 changed files with 6 additions and 3 deletions

View file

@ -512,7 +512,9 @@ func (l *txList) Filter(costLimit *uint256.Int, gasLimit uint64) (types.Transact
} }
invalids = l.txs.filter(func(tx *types.Transaction) bool { return tx.Nonce() > lowest }) invalids = l.txs.filter(func(tx *types.Transaction) bool { return tx.Nonce() > lowest })
} }
l.txs.reheap() l.txs.reheap()
return removed, invalids return removed, invalids
} }

View file

@ -719,9 +719,10 @@ func (f *TxFetcher) rescheduleWait(timer *mclock.Timer, trigger chan struct{}) {
} }
} }
} }
*timer = f.clock.AfterFunc(f.txArrivalWait-time.Duration(now-earliest), func() { *timer = f.clock.AfterFunc(
trigger <- struct{}{} f.txArrivalWait-time.Duration(now-earliest),
}) func() { trigger <- struct{}{} },
)
} }
// rescheduleTimeout iterates over all the transactions currently in flight and // rescheduleTimeout iterates over all the transactions currently in flight and