evidence: json tags for DuplicateVoteEvidence (#4959)

## Description

Add json tags to duplicate evidence 

Closes: #4958
This commit is contained in:
Marko
2020-06-05 00:41:16 +02:00
committed by GitHub
parent a88537bb88
commit dc49dcc1c1
2 changed files with 3 additions and 2 deletions
+1
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
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{}