Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
Cluster represent a set of nodes (validators) that are managed together
func (*Cluster) Init ¶
Init will initialize the nodes This implies running `geth init` but also configuring static nodes and node accounts
func (*Cluster) PrintNodeInfo ¶
PrintNodeInfo prints debug information about nodes
type Node ¶
type Node struct {
*NodeConfig
}
Node represents a Node runner
func (*Node) AccountAddresses ¶
AccountAddresses retrieves the list of accounts currently configured in the node
func (*Node) Init ¶
Init will run `geth init` on the node along other initialization procedures that need to happen before we run the node
func (*Node) SetStaticNodes ¶
SetStaticNodes configures static nodes to be used on the node
type NodeConfig ¶
type NodeConfig struct { GethPath string ExtraFlags string ChainID *big.Int Number int Account env.Account TxFeeRecipientAccount env.Account OtherAccounts []env.Account Datadir string }
NodeConfig represents the configuration of a celo-blockchain node runner
func (*NodeConfig) NodePort ¶
func (nc *NodeConfig) NodePort() int64
NodePort is the node port this node will use
func (*NodeConfig) RPCPort ¶
func (nc *NodeConfig) RPCPort() int64
RPCPort is the rpc port this node will use
func (*NodeConfig) WebsocketPort ¶ added in v1.7.4
func (nc *NodeConfig) WebsocketPort() int64
RPCPort is the rpc port this node will use