From b621ed8d0948c0c41ac053d2c1fe348ef6042386 Mon Sep 17 00:00:00 2001 From: Krish Date: Wed, 13 Nov 2024 11:16:48 +0800 Subject: [PATCH] chore: remove unused code --- miner/fix_manager.go | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/miner/fix_manager.go b/miner/fix_manager.go index 5e70711a0..ea37a84c0 100644 --- a/miner/fix_manager.go +++ b/miner/fix_manager.go @@ -25,17 +25,8 @@ func (fm *StateFixManager) StartFix(worker *worker, id engine.PayloadID, parentH fm.mutex.Lock() defer fm.mutex.Unlock() - if fm.isFixInProgress { - log.Warn("Fix is already in progress for this block", "id", id) - return nil - } - - fm.isFixInProgress = true - defer func() { - fm.isFixInProgress = false - }() + log.Info("Fix is in progress for the block", "id", id) - log.Info("Starting synchronous fix process", "id", id) err := worker.fix(parentHash) if err != nil { log.Error("Fix process failed", "error", err)