Browse Source

Better describe method given vote extensions

Signed-off-by: Thane Thomson <connect@thanethomson.com>
thane/7655-vote-extensions
Thane Thomson 3 years ago
parent
commit
ce54bf3bdb
No known key found for this signature in database GPG Key ID: 19811391D676EE45
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      types/canonical.go

+ 2
- 1
types/canonical.go View File

@ -52,7 +52,8 @@ func CanonicalizeProposal(chainID string, proposal *tmproto.Proposal) tmproto.Ca
}
// CanonicalizeVote transforms the given Vote to a CanonicalVote, which does
// not contain ValidatorIndex and ValidatorAddress fields.
// not contain ValidatorIndex and ValidatorAddress fields, or any fields
// relating to vote extensions.
func CanonicalizeVote(chainID string, vote *tmproto.Vote) tmproto.CanonicalVote {
return tmproto.CanonicalVote{
Type: vote.Type,


Loading…
Cancel
Save