Skip to content

Commit de27165

Browse files
greg7mdpRuteri
authored andcommitted
fix issue with geth not shutting down (#97)
flashbots: fix issue with geth not shutting down
1 parent 93363a8 commit de27165

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

miner/worker.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,11 +260,12 @@ func newWorker(config *Config, chainConfig *params.ChainConfig, engine consensus
260260
recommit = minRecommitInterval
261261
}
262262

263-
worker.wg.Add(4)
263+
worker.wg.Add(2)
264264
go worker.mainLoop()
265265
go worker.newWorkLoop(recommit)
266266
if !flashbots.isFlashbots {
267267
// only mine if not flashbots
268+
worker.wg.Add(2)
268269
go worker.resultLoop()
269270
go worker.taskLoop()
270271
}

0 commit comments

Comments
 (0)