Skip to content

Commit

Permalink
fix issue with geth not shutting down (ethereum#97)
Browse files Browse the repository at this point in the history
flashbots: fix issue with geth not shutting down
  • Loading branch information
greg7mdp authored and Ruteri committed Jan 6, 2022
1 parent 8677391 commit 571ed23
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 @@ -262,11 +262,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 571ed23

Please sign in to comment.