Merge pull request #22 from scmart/fix-commitLongestPath-ob1

fix commitLongestPath off-by-one
This commit is contained in:
Cassandra Heart 2023-10-16 22:05:04 -07:00 committed by GitHub
commit 20aae290cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -810,7 +810,7 @@ func (e *CeremonyDataClockConsensusEngine) commitLongestPath(
} }
runningFrames = [][]*protobufs.ClockFrame{ runningFrames = [][]*protobufs.ClockFrame{
{nextRunningFrames[0][currentDepth+1]}, {nextRunningFrames[0][currentDepth]},
} }
currentDepth = 0 currentDepth = 0
} else { } else {