mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-18 16:44:12 +00:00
Fix panic("durations cannot be empty") (#6029)
This commit is contained in:
parent
04e3a18463
commit
09c5e4699b
@ -111,7 +111,7 @@ func (s *Step) doCalibrate() {
|
|||||||
|
|
||||||
// optCalibrate Calibrates the AuRa step number according to the current time.
|
// optCalibrate Calibrates the AuRa step number according to the current time.
|
||||||
func (s *Step) optCalibrate() bool {
|
func (s *Step) optCalibrate() bool {
|
||||||
now := time.Now().Second()
|
now := time.Now().Unix()
|
||||||
var info StepDurationInfo
|
var info StepDurationInfo
|
||||||
i := 0
|
i := 0
|
||||||
for _, d := range s.durations {
|
for _, d := range s.durations {
|
||||||
|
Loading…
Reference in New Issue
Block a user