mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
eth/catalyst: always reset timer after sealing error
This commit is contained in:
parent
7755ee3e4f
commit
c2260110b1
1 changed files with 1 additions and 2 deletions
|
|
@ -280,9 +280,8 @@ func (c *SimulatedBeacon) loop() {
|
|||
case <-timer.C:
|
||||
if err := c.sealBlock(c.withdrawals.pop(10), uint64(time.Now().Unix())); err != nil {
|
||||
log.Warn("Error performing sealing work", "err", err)
|
||||
} else {
|
||||
timer.Reset(time.Second * time.Duration(c.period))
|
||||
}
|
||||
timer.Reset(time.Second * time.Duration(c.period))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue