This commit is contained in:
William Banfield
2021-10-14 08:08:59 -04:00
parent ba0bb1a789
commit c8e6d61974

View File

@@ -1349,8 +1349,8 @@ func (cs *State) defaultDoPrevote(height int64, round int32) {
If we see a proposal in the current round for value 'v' that lists its valid round as 'v_r'
AND this validator saw a 2/3 majority of the voting power prevote 'v' in round 'v_r', then we will
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.
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'.
@@ -1370,7 +1370,8 @@ func (cs *State) defaultDoPrevote(height int64, round int32) {
}
}
logger.Debug("prevote step: ProposalBlock is valid but was not our locked block or did not receive a more recent majority; prevoting nil")
logger.Debug("prevote step: ProposalBlock is valid but was not our locked block or" +
"did not receive a more recent majority; prevoting nil")
cs.signAddVote(tmproto.PrevoteType, nil, types.PartSetHeader{})
}