|
|
@ -49,22 +49,23 @@ type ConsensusInternal struct { |
|
|
|
|
|
|
|
|
|
|
|
// NodeMetadata captures select metadata of the RPC answering node
|
|
|
|
// NodeMetadata captures select metadata of the RPC answering node
|
|
|
|
type NodeMetadata struct { |
|
|
|
type NodeMetadata struct { |
|
|
|
BLSPublicKey []string `json:"blskey"` |
|
|
|
BLSPublicKey []string `json:"blskey"` |
|
|
|
Version string `json:"version"` |
|
|
|
Version string `json:"version"` |
|
|
|
NetworkType string `json:"network"` |
|
|
|
NetworkType string `json:"network"` |
|
|
|
ChainConfig params.ChainConfig `json:"chain-config"` |
|
|
|
ChainConfig params.ChainConfig `json:"chain-config"` |
|
|
|
IsLeader bool `json:"is-leader"` |
|
|
|
IsLeader bool `json:"is-leader"` |
|
|
|
ShardID uint32 `json:"shard-id"` |
|
|
|
ShardID uint32 `json:"shard-id"` |
|
|
|
CurrentEpoch uint64 `json:"current-epoch"` |
|
|
|
CurrentBlockNum uint64 `json:"current-number"` |
|
|
|
BlocksPerEpoch *uint64 `json:"blocks-per-epoch,omitempty"` |
|
|
|
CurrentEpoch uint64 `json:"current-epoch"` |
|
|
|
Role string `json:"role"` |
|
|
|
BlocksPerEpoch *uint64 `json:"blocks-per-epoch,omitempty"` |
|
|
|
DNSZone string `json:"dns-zone"` |
|
|
|
Role string `json:"role"` |
|
|
|
Archival bool `json:"is-archival"` |
|
|
|
DNSZone string `json:"dns-zone"` |
|
|
|
NodeBootTime int64 `json:"node-unix-start-time"` |
|
|
|
Archival bool `json:"is-archival"` |
|
|
|
PeerID peer.ID `json:"peerid"` |
|
|
|
NodeBootTime int64 `json:"node-unix-start-time"` |
|
|
|
Consensus ConsensusInternal `json:"consensus"` |
|
|
|
PeerID peer.ID `json:"peerid"` |
|
|
|
C C `json:"p2p-connectivity"` |
|
|
|
Consensus ConsensusInternal `json:"consensus"` |
|
|
|
SyncPeers map[string]int `json:"sync-peers",omitempty` |
|
|
|
C C `json:"p2p-connectivity"` |
|
|
|
|
|
|
|
SyncPeers map[string]int `json:"sync-peers",omitempty` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// P captures the connected peers per topic
|
|
|
|
// P captures the connected peers per topic
|
|
|
|