|
@ -158,7 +158,7 @@ func (voteSet *VoteSet) addVote(vote *Vote) (added bool, err error) { |
|
|
if (vote.Height != voteSet.height) || |
|
|
if (vote.Height != voteSet.height) || |
|
|
(vote.Round != voteSet.round) || |
|
|
(vote.Round != voteSet.round) || |
|
|
(vote.Type != voteSet.type_) { |
|
|
(vote.Type != voteSet.type_) { |
|
|
return false, errors.Wrapf(ErrVoteUnexpectedStep, "Got %d/%d/%d, expected %d/%d/%d", |
|
|
|
|
|
|
|
|
return false, errors.Wrapf(ErrVoteUnexpectedStep, "Expected %d/%d/%d, but got %d/%d/%d", |
|
|
voteSet.height, voteSet.round, voteSet.type_, |
|
|
voteSet.height, voteSet.round, voteSet.type_, |
|
|
vote.Height, vote.Round, vote.Type) |
|
|
vote.Height, vote.Round, vote.Type) |
|
|
} |
|
|
} |
|
|