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 Nov 24, 2021
1 parent 93363a8 commit de27165
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 @@ -260,11 +260,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 de27165

Please sign in to comment.