From 76791d3f154a77cd94b4797f7d1ec5f164195a73 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Tue, 26 Sep 2023 00:08:33 +0200 Subject: [PATCH] eth/fetcher: add comment --- eth/fetcher/tx_fetcher.go | 1 + 1 file changed, 1 insertion(+) diff --git a/eth/fetcher/tx_fetcher.go b/eth/fetcher/tx_fetcher.go index a908504e13..a11b5e2164 100644 --- a/eth/fetcher/tx_fetcher.go +++ b/eth/fetcher/tx_fetcher.go @@ -256,6 +256,7 @@ func (f *TxFetcher) Notify(peer string, hashes []common.Hash) error { } } +// 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+maxTxUnderpricedTimeout < time.Now().Unix() {