eth/fetcher: add comment

This commit is contained in:
Felix Lange 2023-09-26 00:08:33 +02:00
parent bc06583957
commit 76791d3f15

View file

@ -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() {