From 6b660d0da7938b7310c8ebd9493e8e03d4021c02 Mon Sep 17 00:00:00 2001 From: Cassandra Heart Date: Sat, 2 Dec 2023 00:08:50 -0600 Subject: [PATCH] fix: handle fresh sync --- node/consensus/ceremony/consensus_frames.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/node/consensus/ceremony/consensus_frames.go b/node/consensus/ceremony/consensus_frames.go index ab679d1..db8aabc 100644 --- a/node/consensus/ceremony/consensus_frames.go +++ b/node/consensus/ceremony/consensus_frames.go @@ -705,6 +705,9 @@ func (e *CeremonyDataClockConsensusEngine) commitLongestPath( ) for _, s := range runningFrames[0][0:] { + if s.FrameNumber == 0 { + continue + } s := s txn, err := e.clockStore.NewTransaction() if err != nil {