mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
eth/fetcher: add comment
This commit is contained in:
parent
bc06583957
commit
76791d3f15
1 changed files with 1 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue