mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-27 15:16:43 +00:00
Revert "fix: revert block-on-demand (and use constant block time for … (#226)
Revert "fix: revert block-on-demand (and use constant block time for clique) (#193)"
This reverts commit 5ca70bf3a2.
This commit is contained in:
parent
3fcd77955e
commit
96642f5be6
1 changed files with 1 additions and 1 deletions
|
|
@ -397,7 +397,7 @@ func (w *worker) newWorkLoop(recommit time.Duration) {
|
||||||
case head := <-w.chainHeadCh:
|
case head := <-w.chainHeadCh:
|
||||||
clearPending(head.Block.NumberU64())
|
clearPending(head.Block.NumberU64())
|
||||||
timestamp = time.Now().Unix()
|
timestamp = time.Now().Unix()
|
||||||
commit(false, commitInterruptNewHead)
|
commit(true, commitInterruptNewHead)
|
||||||
|
|
||||||
case <-timer.C:
|
case <-timer.C:
|
||||||
// If mining is running resubmit a new work cycle periodically to pull in
|
// If mining is running resubmit a new work cycle periodically to pull in
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue