mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-02 01:53:48 +00:00
added check to set the txArrivalWait value to the txGatherSlack value if txArrivalWait < txGatherSlack
This commit is contained in:
parent
b8be0dace8
commit
d56370b910
1 changed files with 5 additions and 0 deletions
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue