From 5ca70bf3a257dbf09bed4b1ac463e5c0c1234f3a Mon Sep 17 00:00:00 2001 From: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com> Date: Wed, 21 Dec 2022 15:32:56 +0800 Subject: [PATCH] fix: revert block-on-demand (and use constant block time for clique) (#193) revert block-on-demand --- miner/worker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miner/worker.go b/miner/worker.go index 3140f38938..7933195d92 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(true, commitInterruptNewHead) + commit(false, commitInterruptNewHead) case <-timer.C: // If mining is running resubmit a new work cycle periodically to pull in