mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-03 19:53:58 +00:00
types: more test cases for TestValidatorSet_VerifyCommit (#5018)
Refs #4926
This commit is contained in:
@@ -82,8 +82,12 @@ func (vote *Vote) CommitSig() CommitSig {
|
||||
}
|
||||
}
|
||||
|
||||
//VoteSignBytes take the chainID & a vote, represented in protobuf, and creates a signature.
|
||||
// If any error arises this will panic
|
||||
// VoteSignBytes returns the proto-encoding of the canonicalized Vote, for
|
||||
// signing.
|
||||
//
|
||||
// Panics if the marshaling fails.
|
||||
//
|
||||
// See CanonicalizeVote
|
||||
func VoteSignBytes(chainID string, vote *tmproto.Vote) []byte {
|
||||
pb := CanonicalizeVote(chainID, vote)
|
||||
bz, err := protoio.MarshalDelimited(&pb)
|
||||
|
||||
Reference in New Issue
Block a user