From 6706c4deb9777cd3b6aeafc6a68d58635039f213 Mon Sep 17 00:00:00 2001 From: Gregory Popovitch Date: Fri, 10 Dec 2021 09:57:50 -0500 Subject: [PATCH] Fix issue with geth not terminating (#99) --- miner/worker.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miner/worker.go b/miner/worker.go index 240ab4de2d8d..acefc7b44ce3 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -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() }