[shard] Provide JSON dump of shard state

pull/1827/head
Edgar Aroutiounian 5 years ago
parent 78c0cf030c
commit 32f4db4c4f
  1. 4
      shard/shard_state.go

@ -39,7 +39,7 @@ type NodeID struct {
EcdsaAddress common.Address `json:"ecdsa-address"` EcdsaAddress common.Address `json:"ecdsa-address"`
BlsPublicKey BlsPublicKey `json:"bls-pubkey"` BlsPublicKey BlsPublicKey `json:"bls-pubkey"`
// nil means not active, 0 means our node, >= 0 means staked node // nil means not active, 0 means our node, >= 0 means staked node
StakeWithDelegationApplied *numeric.Dec `json:"staked-validator" rlp:"nil"` StakeWithDelegationApplied *big.Int `json:"staked-validator" rlp:"nil"`
} }
// NodeIDList is a list of NodeIDList. // NodeIDList is a list of NodeIDList.
@ -55,7 +55,7 @@ type Committee struct {
func (ss State) JSON() string { func (ss State) JSON() string {
type t struct { type t struct {
NodeID NodeID
EcdsaAddress string `json:"one-address"` EcdsaAddress string `json:"ecdsa-address"`
} }
type v struct { type v struct {
Committee Committee

Loading…
Cancel
Save