Browse Source

improve vague error msg, closes #1158

pull/1178/head
Zach Ramsay 7 years ago
parent
commit
1c01671ec6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      types/vote_set.go

+ 1
- 1
types/vote_set.go View File

@ -172,7 +172,7 @@ func (voteSet *VoteSet) addVote(vote *Vote) (added bool, err error) {
// Ensure that the signer has the right address
if !bytes.Equal(valAddr, lookupAddr) {
return false, errors.Wrapf(ErrVoteInvalidValidatorAddress,
"vote.ValidatorAddress (%X) does not match address (%X) for vote.ValidatorIndex (%d)",
"vote.ValidatorAddress (%X) does not match address (%X) for vote.ValidatorIndex (%d)\nEnsure the genesis file is correct across all validators.",
valAddr, lookupAddr, valIndex)
}


Loading…
Cancel
Save