Skip to content

Commit

Permalink
Revert "fix: revert block-on-demand (and use constant block time for … (
Browse files Browse the repository at this point in the history
ethereum#226)

Revert "fix: revert block-on-demand (and use constant block time for clique) (ethereum#193)"

This reverts commit 5ca70bf.
  • Loading branch information
0xmountaintop authored Feb 22, 2023
1 parent 3fcd779 commit 96642f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion miner/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 96642f5

Please sign in to comment.