Merge branch 'release/v0.23.0' into bucky/merge-0.23.0-to-develop

This commit is contained in:
Ethan Buchman
2018-08-05 16:42:04 -04:00
26 changed files with 138 additions and 223 deletions

View File

@ -179,7 +179,7 @@ func (voteSet *VoteSet) addVote(vote *Vote) (added bool, err error) {
// If we already know of this vote, return false.
if existing, ok := voteSet.getVote(valIndex, blockKey); ok {
if existing.Signature.Equals(vote.Signature) {
if bytes.Equal(existing.Signature, vote.Signature) {
return false, nil // duplicate
}
return false, errors.Wrapf(ErrVoteNonDeterministicSignature, "Existing vote: %v; New vote: %v", existing, vote)