common

package
v0.0.0-...-2cf7c70 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeInfo

type NodeInfo struct {
	State     uint32 `json:"State"`     // node status
	SyncState string `json:"SyncState"` // node block sync status
	Port      uint16 `json:"Port"`      // The nodes's port
	NodePort  uint16 `json:"NodePort"`  // The nodes's port
	ChordPort uint16 `json:"ChordPort"` // The nodes's port
	JsonPort  uint16 `json:"JsonPort"`  // The node's RPC httpjson port
	WsPort    uint16 `json:"WsPort"`    // The node's RPC WebSock port
	Addr      string `json:"Addr"`      // The node's IP address
	ID        uint64 `json:"ID"`        // The nodes's id
	Time      int64  `json:"Time"`
	Version   uint32 `json:"Version"`  // The network protocol the node used
	Services  uint64 `json:"Services"` // The services the node supplied
	Relay     bool   `json:"Relay"`    // The relay capability of the node (merge into capbility flag)
	Height    uint32 `json:"Height"`   // The node latest block height
	TxnCnt    uint64 `json:"TxnCnt"`   // The transactions be transmit by this node
	RxTxnCnt  uint64 `json:"RxTxnCnt"` // The transaction received by this node
	ChordID   string `json:"ChordID"`  // Chord ID
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL