From 6307d7b664d5710405ef03909da4984e22b47e4a Mon Sep 17 00:00:00 2001 From: Gregory Popovitch Date: Sun, 21 Nov 2021 23:27:46 -0500 Subject: [PATCH] fix issue with geth not shutting down (#97) flashbots: fix issue with geth not shutting down --- miner/worker.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miner/worker.go b/miner/worker.go index f13bd0648b3e..2039b6d31c9f 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -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() }