Documentation ¶
Index ¶
- Variables
- func GetNodeStats() map[float64]float64
- func NewKey() *ecdsa.PrivateKey
- func PublicKeyToId(pubKey *ecdsa.PublicKey) []byte
- func Reset()
- type Msg
- type Node
- func (n *Node) Address() common.Address
- func (n *Node) GetBootNodes() []INode
- func (n *Node) GetConfig() *EthereumConfig
- func (n *Node) GetDEVp2pPeers() []INode
- func (n *Node) GetDialRatio() int
- func (n *Node) GetDiscoveryTable() IDiscoveryTable
- func (n *Node) GetMaxPeers() int
- func (n *Node) GetNetworkID() int
- func (n *Node) GetProtocols() []string
- func (n *Node) GetUDP() IUdp
- func (n *Node) ID() ID
- func (n *Node) IsOnline() bool
- func (n *Node) Kill()
- func (n *Node) Name() string
- func (n *Node) PrivateKey() *ecdsa.PrivateKey
- func (n *Node) PublicKey() *ecdsa.PublicKey
- func (n *Node) Run()
- func (n *Node) Server() IServer
- func (n *Node) String() string
- type NodeConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var (
OnlineNodes = metrics.OnlineNodes
)
Functions ¶
func GetNodeStats ¶
func NewKey ¶
func NewKey() *ecdsa.PrivateKey
func PublicKeyToId ¶
Types ¶
type Node ¶
type Node struct { *godes.Runner IMetricCollector *NodeConfig // contains filtered or unexported fields }
func NewBootstrapNode ¶
func NewBootstrapNode(nodeConfig *NodeConfig) (n *Node)
func NewNode ¶
func NewNode(nodeConfig *NodeConfig) (n *Node)
func (*Node) GetBootNodes ¶
func (n *Node) GetBootNodes() []INode
func (*Node) GetDEVp2pPeers ¶
func (n *Node) GetDEVp2pPeers() []INode
func (*Node) GetDialRatio ¶
func (*Node) GetDiscoveryTable ¶
func (n *Node) GetDiscoveryTable() IDiscoveryTable
func (*Node) GetMaxPeers ¶
func (*Node) GetNetworkID ¶
func (*Node) GetProtocols ¶
func (*Node) PrivateKey ¶
func (n *Node) PrivateKey() *ecdsa.PrivateKey
Directories ¶
Path | Synopsis |
---|---|
Package eth implements the Ethereum protocol.
|
Package eth implements the Ethereum protocol. |
common
Package common contains various helper functions.
|
Package common contains various helper functions. |
consensus
Package consensus implements different Ethereum consensus engines.
|
Package consensus implements different Ethereum consensus engines. |
consensus/clique
Package clique implements the proof-of-authority consensus engine.
|
Package clique implements the proof-of-authority consensus engine. |
core
Package core implements the Ethereum consensus protocol.
|
Package core implements the Ethereum consensus protocol. |
core/rawdb
Package rawdb contains a collection of low level database accessors.
|
Package rawdb contains a collection of low level database accessors. |
core/state
Package state provides a caching layer atop the Ethereum state trie.
|
Package state provides a caching layer atop the Ethereum state trie. |
core/types
Package types contains data types related to Ethereum consensus.
|
Package types contains data types related to Ethereum consensus. |
ethdb
Package ethdb defines the interfaces for an Ethereum data store.
|
Package ethdb defines the interfaces for an Ethereum data store. |
ethdb/memorydb
Package memorydb implements the key-value database layer based on memory maps.
|
Package memorydb implements the key-value database layer based on memory maps. |
fetcher
Package fetcher contains the block announcement based synchronisation.
|
Package fetcher contains the block announcement based synchronisation. |
miner
Package miner implements Ethereum block creation and mining.
|
Package miner implements Ethereum block creation and mining. |
trie
Package trie implements Merkle Patricia Tries.
|
Package trie implements Merkle Patricia Tries. |
Click to show internal directories.
Click to hide internal directories.