Skip to content

Commit

Permalink
revert block-on-demand
Browse files Browse the repository at this point in the history
  • Loading branch information
0xmountaintop committed Dec 21, 2022
1 parent 78c1f57 commit 62b677b
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(true, commitInterruptNewHead)
commit(false, commitInterruptNewHead)

case <-timer.C:
// If mining is running resubmit a new work cycle periodically to pull in
Expand Down

0 comments on commit 62b677b

Please sign in to comment.