Merge pull request #494 from tendermint/json-naming

Clean up json output
This commit is contained in:
Ethan Buchman
2017-05-15 19:03:25 +02:00
committed by GitHub
3 changed files with 7 additions and 6 deletions
+4 -3
View File
@@ -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,9 @@ 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
// NOTE: persisted via reflect, must be exported.
Validators []*Validator `json:"validators"`
Proposer *Validator `json:"proposer"`
// cached (unexported)
totalVotingPower int64