From c89fd5264a5d61e964113dc65cba8d91bac8ef18 Mon Sep 17 00:00:00 2001 From: crStiv Date: Sun, 23 Mar 2025 22:08:48 +0100 Subject: [PATCH] Update tx_fetcher.go --- eth/fetcher/tx_fetcher.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eth/fetcher/tx_fetcher.go b/eth/fetcher/tx_fetcher.go index 97d1e29862..97678940a8 100644 --- a/eth/fetcher/tx_fetcher.go +++ b/eth/fetcher/tx_fetcher.go @@ -293,7 +293,8 @@ func (f *TxFetcher) Notify(peer string, types []byte, sizes []uint32, hashes []c // isKnownUnderpriced reports whether a transaction hash was recently found to be underpriced. func (f *TxFetcher) isKnownUnderpriced(hash common.Hash) bool { prevTime, ok := f.underpriced.Peek(hash) - if ok && prevTime.Before(time.Now().Add(-maxTxUnderpricedTimeout)) { + now := time.Unix(int64(f.clock.Now()/1000000000), 0) + if ok && prevTime.Before(now.Add(-maxTxUnderpricedTimeout)) { f.underpriced.Remove(hash) return false }