adjust missing merge data

This commit is contained in:
Cassandra Heart 2023-09-12 02:13:07 -05:00
parent 823d095e53
commit 83c8c4cae1
No known key found for this signature in database
GPG Key ID: 6352152859385958

View File

@ -213,8 +213,8 @@ func (e *MasterClockConsensusEngine) handleClockFramesRequest(
to = request.FromFrameNumber + 127
}
if int(to) > len(e.historicFrames)-1 {
to = uint64(len(e.historicFrames) - 1)
if int(to) > int(e.latestFrame.FrameNumber) {
to = e.latestFrame.FrameNumber
}
e.logger.Info(