From 09c5e4699bfd8b3c2be3b02df1081984dbaeac39 Mon Sep 17 00:00:00 2001 From: Andrew Ashikhmin <34320705+yperbasis@users.noreply.github.com> Date: Fri, 11 Nov 2022 15:24:58 +0100 Subject: [PATCH] Fix panic("durations cannot be empty") (#6029) --- consensus/aura/aura.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consensus/aura/aura.go b/consensus/aura/aura.go index 076e4192b..8bb6179e0 100644 --- a/consensus/aura/aura.go +++ b/consensus/aura/aura.go @@ -111,7 +111,7 @@ func (s *Step) doCalibrate() { // optCalibrate Calibrates the AuRa step number according to the current time. func (s *Step) optCalibrate() bool { - now := time.Now().Second() + now := time.Now().Unix() var info StepDurationInfo i := 0 for _, d := range s.durations {