From 2b048c1e626d31b16dba9ff49c40d7dc86da52ed Mon Sep 17 00:00:00 2001 From: SHIVAM SHARMA Date: Thu, 4 May 2023 18:08:54 +0530 Subject: [PATCH] rm : disable interruptCommit on txsCh select case (#848) --- miner/worker.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/miner/worker.go b/miner/worker.go index 8188b7f3ec..d5d0e8d50e 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -654,7 +654,8 @@ func (w *worker) mainLoop(ctx context.Context) { txset := types.NewTransactionsByPriceAndNonce(w.current.signer, txs, cmath.FromBig(w.current.header.BaseFee)) tcount := w.current.tcount - interruptCh, stopFn := getInterruptTimer(ctx, w.current, w.chain.CurrentBlock()) + var interruptCh chan struct{} + w.commitTransactions(w.current, txset, nil, interruptCh) // Only update the snapshot if any new transactions were added @@ -662,8 +663,6 @@ func (w *worker) mainLoop(ctx context.Context) { if tcount != w.current.tcount { w.updateSnapshot(w.current) } - - stopFn() } else { // Special case, if the consensus engine is 0 period clique(dev mode), // submit sealing work here since all empty submission will be rejected