mirror of
https://github.com/tendermint/tendermint.git
synced 2026-05-20 22:21:28 +00:00
lint
This commit is contained in:
@@ -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{})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user