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 23, 2021
1 parent 3127537 commit 6307d7b
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 6307d7b

Please sign in to comment.