Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetRawStake ¶
SetRawStake is a hack, return value is if was successful or not at setting
Types ¶
type BlockArgs ¶
type BlockArgs struct { WithSigners bool `json:"withSigners"` InclTx bool `json:"inclTx"` FullTx bool `json:"fullTx"` Signers []string `json:"signers"` InclStaking bool `json:"inclStaking"` }
BlockArgs is struct to include optional block formatting params.
func (*BlockArgs) UnmarshalFromInterface ¶
UnmarshalFromInterface ..
type C ¶
type C struct { TotalKnownPeers int `json:"total-known-peers"` Connected int `json:"connected"` NotConnected int `json:"not-connected"` }
C ..
type ConsensusInternal ¶
type ConsensusInternal struct { ViewID uint64 `json:"viewId"` ViewChangeID uint64 `json:"viewChangeId"` Mode string `json:"mode"` Phase string `json:"phase"` BlockNum uint64 `json:"blocknum"` ConsensusTime int64 `json:"finality"` }
ConsensusInternal captures consensus internal data
type NodeMetadata ¶
type NodeMetadata struct { BLSPublicKey []string `json:"blskey"` Version string `json:"version"` NetworkType string `json:"network"` ChainConfig params.ChainConfig `json:"chain-config"` IsLeader bool `json:"is-leader"` ShardID uint32 `json:"shard-id"` CurrentEpoch uint64 `json:"current-epoch"` BlocksPerEpoch *uint64 `json:"blocks-per-epoch,omitempty"` Role string `json:"role"` DNSZone string `json:"dns-zone"` Archival bool `json:"is-archival"` NodeBootTime int64 `json:"node-unix-start-time"` PeerID peer.ID `json:"peerid"` Consensus ConsensusInternal `json:"consensus"` C C `json:"p2p-connectivity"` }
NodeMetadata captures select metadata of the RPC answering node
Click to show internal directories.
Click to hide internal directories.