From 157ec8af2d6ea6d3182dc38cbab261be02e87eb8 Mon Sep 17 00:00:00 2001 From: Ethan Frey Date: Fri, 12 May 2017 22:22:22 +0200 Subject: [PATCH] Add json tags to validator set --- types/validator_set.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/validator_set.go b/types/validator_set.go index f6a8faf46..7d019e02e 100644 --- a/types/validator_set.go +++ b/types/validator_set.go @@ -6,9 +6,9 @@ import ( "sort" "strings" + "github.com/tendermint/go-wire" cmn "github.com/tendermint/tmlibs/common" "github.com/tendermint/tmlibs/merkle" - "github.com/tendermint/go-wire" ) // ValidatorSet represent a set of *Validator at a given height. @@ -23,8 +23,8 @@ import ( // TODO: consider validator Accum overflow // TODO: move valset into an iavl tree where key is 'blockbonded|pubkey' type ValidatorSet struct { - Validators []*Validator // NOTE: persisted via reflect, must be exported. - Proposer *Validator + Validators []*Validator `json:"validators"` + Proposer *Validator `json:"proposer"` // cached (unexported) totalVotingPower int64