From 96642f5be6f2531e0d527e4a2620851ef9c87c49 Mon Sep 17 00:00:00 2001 From: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com> Date: Thu, 23 Feb 2023 06:30:49 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"fix:=20revert=20block-on-demand=20(an?= =?UTF-8?q?d=20use=20constant=20block=20time=20for=20=E2=80=A6=20(#226)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 29b997230c..2917d5af7c 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