From 7e05d43b60f40bed897962a287b8df641e73fc65 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 21 Sep 2022 22:35:01 -0400 Subject: [PATCH] Sync Vote.Verify() in spec with implementation (#9466) (#9477) --- spec/core/data_structures.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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