types.SignBytes -> o.SignBytes

This commit is contained in:
Ethan Buchman
2018-03-02 01:50:17 -05:00
parent abeeeeb611
commit 5378bfc5c7
7 changed files with 14 additions and 14 deletions

View File

@ -102,7 +102,7 @@ func makeVote(header *types.Header, vals *types.ValidatorSet, key crypto.PrivKey
BlockID: types.BlockID{Hash: header.Hash()},
}
// Sign it
signBytes := types.SignBytes(header.ChainID, vote)
signBytes := vote.SignBytes(header.ChainID)
vote.Signature = key.Sign(signBytes)
return vote
}