Skip to content

Commit

Permalink
added check to set the txArrivalWait value to the txGatherSlack value…
Browse files Browse the repository at this point in the history
… if txArrivalWait < txGatherSlack
  • Loading branch information
thogard785 committed Feb 9, 2023
1 parent b8be0da commit d56370b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions eth/fetcher/tx_fetcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,11 @@ func (f *TxFetcher) Drop(peer string) error {
// Start boots up the announcement based synchroniser, accepting and processing
// hash notifications and block fetches until termination requested.
func (f *TxFetcher) Start() {
// the txArrivalWait duration should not be less than the txGatherSlack duration
if f.txArrivalWait < txGatherSlack {
f.txArrivalWait = txGatherSlack
}

go f.loop()
}

Expand Down

0 comments on commit d56370b

Please sign in to comment.