Skip to content

Commit

Permalink
Fix issue with geth not terminating (ethereum#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
greg7mdp authored Dec 10, 2021
1 parent 5cfe7fe commit 6706c4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,12 @@ func newWorker(config *Config, chainConfig *params.ChainConfig, engine consensus
recommit = minRecommitInterval
}

worker.wg.Add(4)
worker.wg.Add(2)
go worker.mainLoop()
go worker.newWorkLoop(recommit)
if !flashbots.isFlashbots {
// only mine if not flashbots
worker.wg.Add(2)
go worker.resultLoop()
go worker.taskLoop()
}
Expand Down

0 comments on commit 6706c4d

Please sign in to comment.