From 8df0ab63f31f686d9a4377bdc0babe9f8f2afebc Mon Sep 17 00:00:00 2001 From: William Banfield Date: Fri, 15 Oct 2021 15:54:07 -0400 Subject: [PATCH] fix comment --- internal/consensus/state.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/consensus/state.go b/internal/consensus/state.go index 39aba8427..704dafb17 100644 --- a/internal/consensus/state.go +++ b/internal/consensus/state.go @@ -1354,8 +1354,9 @@ func (cs *State) defaultDoPrevote(height int64, round int32) { issue a prevote for 'v' in this round if 'v' is valid and either matches our locked value OR 'v_r' is a round greater than our current locked round. - 'v_r' can be a round greater than our current locked round if a 2/3 majority of the network prevoted a value - in round 'v_r' but we did not lock on it, possibly because we missed the proposal in round 'v_r'. + 'v_r' can be a round greater than or equal to our current locked round if a 2/3 majority of + the network prevoted a value in round 'v_r' but we did not lock on it, possibly because we + missed the proposal in round 'v_r'. */ blockID, ok := cs.Votes.Prevotes(cs.Proposal.POLRound).TwoThirdsMajority() if ok && cs.ProposalBlock.HashesTo(blockID.Hash) && cs.Proposal.POLRound >= 0 && cs.Proposal.POLRound < cs.Round {