diff --git a/spec/core/data_structures.md b/spec/core/data_structures.md index 7b2ddc455ec..b3c0a85bac7 100644 --- a/spec/core/data_structures.md +++ b/spec/core/data_structures.md @@ -269,8 +269,8 @@ func (vote *Vote) Verify(chainID string, pubKey crypto.PubKey) error { if !bytes.Equal(pubKey.Address(), vote.ValidatorAddress) { return ErrVoteInvalidValidatorAddress } - - if !pubKey.VerifyBytes(types.VoteSignBytes(chainID), vote.Signature) { + v := vote.ToProto() + if !pubKey.VerifyBytes(types.VoteSignBytes(chainID, v), vote.Signature) { return ErrVoteInvalidSignature } return nil