From d45a925525cbdfafebbcd55fa0f0d4f58a7da6f3 Mon Sep 17 00:00:00 2001 From: Sedric Date: Mon, 16 Oct 2023 16:36:03 -0400 Subject: [PATCH] fix commitLongestPath off-by-one --- node/consensus/ceremony/consensus_frames.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/consensus/ceremony/consensus_frames.go b/node/consensus/ceremony/consensus_frames.go index a87d55d..2fdaa41 100644 --- a/node/consensus/ceremony/consensus_frames.go +++ b/node/consensus/ceremony/consensus_frames.go @@ -810,7 +810,7 @@ func (e *CeremonyDataClockConsensusEngine) commitLongestPath( } runningFrames = [][]*protobufs.ClockFrame{ - {nextRunningFrames[0][currentDepth+1]}, + {nextRunningFrames[0][currentDepth]}, } currentDepth = 0 } else {