From 03afecfa336b662dfcd2742d80df5c62b55bb523 Mon Sep 17 00:00:00 2001 From: HAOYUatHZ Date: Thu, 23 Feb 2023 05:15:56 +0800 Subject: [PATCH] Revert "fix: revert block-on-demand (and use constant block time for clique) (#193)" This reverts commit 5ca70bf3a257dbf09bed4b1ac463e5c0c1234f3a. --- miner/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miner/worker.go b/miner/worker.go index 29b997230c33..2917d5af7c9e 100644 --- a/miner/worker.go +++ b/miner/worker.go @@ -397,7 +397,7 @@ func (w *worker) newWorkLoop(recommit time.Duration) { case head := <-w.chainHeadCh: clearPending(head.Block.NumberU64()) timestamp = time.Now().Unix() - commit(false, commitInterruptNewHead) + commit(true, commitInterruptNewHead) case <-timer.C: // If mining is running resubmit a new work cycle periodically to pull in