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

revert block-on-demand
This commit is contained in:
HAOYUatHZ 2022-12-21 15:32:56 +08:00 committed by GitHub
parent 78c1f57fcf
commit 5ca70bf3a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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