From a9b5368aa3d1ff7f6d2b46957c2c93cfbc107cee Mon Sep 17 00:00:00 2001 From: YoshihitoAso Date: Mon, 18 Mar 2024 15:27:56 +0900 Subject: [PATCH] fix commit --- miner/worker.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/miner/worker.go b/miner/worker.go index 5051f724e..2ba3cc663 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -906,14 +906,14 @@ func (w *worker) commitTransactions(txs *types.TransactionsByPriceAndNonce, coin // (2) worker start or restart, the interrupt signal is 1 // (3) worker recreate the mining block with any newly arrived transactions, the interrupt signal is 2. // (4) new payload timeout, the interrupt signal is 3. - // signal-1, 3 -> the semi-finished work will be discarded. - // signal-2 -> the semi-finished work will be submitted to the consensus engine. + // signal-1 -> the semi-finished work will be discarded. + // signal-2, 3 -> the semi-finished work will be submitted to the consensus engine. if interrupt != nil && atomic.LoadInt32(interrupt) != commitInterruptNone { switch { // Payload timeout case atomic.LoadInt32(interrupt) == commitInterruptTimeout: log.Info("Aborting transaction processing", "signal", commitInterruptTimeout) - return true + return false // Notify resubmit loop to increase resubmitting interval if the // interruption is due to frequent commits.