From 91627fb51fbb2c31fdf20d90591e7b6aa9874add Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Garamv=C3=B6lgyi?= Date: Thu, 18 Apr 2024 10:36:08 +0800 Subject: [PATCH] break instead of return --- miner/worker.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miner/worker.go b/miner/worker.go index 700e586ad5a9..7764786fcddb 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -1063,7 +1063,8 @@ loop: // seal block early if we're over time // note: current.header.Time = max(parent.Time + cliquePeriod, now()) if w.current.tcount > 0 && w.chainConfig.Clique != nil && uint64(time.Now().Unix()) > w.current.header.Time { - return false, true + circuitCapacityReached = true // skip subsequent invocations of commitTransactions + break } // If we don't have enough gas for any further transactions then we're done if w.current.gasPool.Gas() < params.TxGas {