From 83c8c4cae13f5ba10809830c597d79a8ed80de1a Mon Sep 17 00:00:00 2001 From: Cassandra Heart Date: Tue, 12 Sep 2023 02:13:07 -0500 Subject: [PATCH] adjust missing merge data --- node/consensus/master/peer_messaging.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/consensus/master/peer_messaging.go b/node/consensus/master/peer_messaging.go index ecd9dc4..68baf88 100644 --- a/node/consensus/master/peer_messaging.go +++ b/node/consensus/master/peer_messaging.go @@ -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(