more review comments:

- consistently wrap error
 - add changelog entry
This commit is contained in:
Ismail Khoffi
2018-12-07 11:31:14 +01:00
parent df20323cd2
commit 1765eb2cd2
6 changed files with 17 additions and 39 deletions

View File

@ -76,7 +76,7 @@ func NewValidatorStub(privValidator types.PrivValidator, valIndex int) *validato
func (vs *validatorStub) signVote(voteType types.SignedMsgType, hash []byte, header types.PartSetHeader) (*types.Vote, error) {
addr, err := vs.PrivValidator.GetAddress()
if err != nil {
return nil, errors.Wrap(err, "Error while retrieving private validator's address")
return nil, errors.Wrap(err, "failed to get private validator's address")
}
vote := &types.Vote{
ValidatorIndex: vs.Index,