mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-07 13:55:17 +00:00
@@ -269,8 +269,8 @@ func (vote *Vote) Verify(chainID string, pubKey crypto.PubKey) error {
|
|||||||
if !bytes.Equal(pubKey.Address(), vote.ValidatorAddress) {
|
if !bytes.Equal(pubKey.Address(), vote.ValidatorAddress) {
|
||||||
return ErrVoteInvalidValidatorAddress
|
return ErrVoteInvalidValidatorAddress
|
||||||
}
|
}
|
||||||
|
v := vote.ToProto()
|
||||||
if !pubKey.VerifyBytes(types.VoteSignBytes(chainID), vote.Signature) {
|
if !pubKey.VerifyBytes(types.VoteSignBytes(chainID, v), vote.Signature) {
|
||||||
return ErrVoteInvalidSignature
|
return ErrVoteInvalidSignature
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user