Browse Source

evidence: json tags for DuplicateVoteEvidence (#4959)

## Description

Add json tags to duplicate evidence 

Closes: #4958
pull/4966/head
Marko 5 years ago
committed by GitHub
parent
commit
dc49dcc1c1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions
  1. +1
    -0
      CHANGELOG_PENDING.md
  2. +2
    -2
      types/evidence.go

+ 1
- 0
CHANGELOG_PENDING.md View File

@ -31,6 +31,7 @@ Friendly reminder, we have a [bug bounty program](https://hackerone.com/tendermi
- multisig: type `PubKeyMultisigThreshold` is now `PubKey`
- [light] \#4946 Rename `lite2` pkg to `light`, the lite cmd has also been renamed to `light`. Remove `lite` implementation.
- [rpc] \#4937 Return an error when `page` pagination param is 0 in `/validators`, `tx_search` (@melekes)
- [evidence] \#4959 Add json tags to `DuplicateVoteEvidence`
- Apps


+ 2
- 2
types/evidence.go View File

@ -336,8 +336,8 @@ func RegisterMockEvidences(cdc *amino.Codec) {
// DuplicateVoteEvidence contains evidence a validator signed two conflicting
// votes.
type DuplicateVoteEvidence struct {
VoteA *Vote
VoteB *Vote
VoteA *Vote `json:"vote_a"`
VoteB *Vote `json:"vote_b"`
}
var _ Evidence = &DuplicateVoteEvidence{}


Loading…
Cancel
Save