mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-29 22:21:21 +00:00
Add json tags to validator set
This commit is contained in:
parent
f14f167297
commit
157ec8af2d
@ -6,9 +6,9 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
"github.com/tendermint/go-wire"
|
||||||
cmn "github.com/tendermint/tmlibs/common"
|
cmn "github.com/tendermint/tmlibs/common"
|
||||||
"github.com/tendermint/tmlibs/merkle"
|
"github.com/tendermint/tmlibs/merkle"
|
||||||
"github.com/tendermint/go-wire"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// ValidatorSet represent a set of *Validator at a given height.
|
// ValidatorSet represent a set of *Validator at a given height.
|
||||||
@ -23,8 +23,8 @@ import (
|
|||||||
// TODO: consider validator Accum overflow
|
// TODO: consider validator Accum overflow
|
||||||
// TODO: move valset into an iavl tree where key is 'blockbonded|pubkey'
|
// TODO: move valset into an iavl tree where key is 'blockbonded|pubkey'
|
||||||
type ValidatorSet struct {
|
type ValidatorSet struct {
|
||||||
Validators []*Validator // NOTE: persisted via reflect, must be exported.
|
Validators []*Validator `json:"validators"`
|
||||||
Proposer *Validator
|
Proposer *Validator `json:"proposer"`
|
||||||
|
|
||||||
// cached (unexported)
|
// cached (unexported)
|
||||||
totalVotingPower int64
|
totalVotingPower int64
|
||||||
|
Loading…
x
Reference in New Issue
Block a user