eth/catalyst: always reset timer after sealing error

This commit is contained in:
sashass1315 2025-11-10 11:06:44 +02:00 committed by GitHub
parent 7755ee3e4f
commit c2260110b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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