Documentation ¶
Overview ¶
Package manager contains functions for managing the testnets. Handles creating test nets, adding/removing nodes from testnets
Index ¶
- func AddNodes(details *db.DeploymentDetails, testnetID string) error
- func AddTestNet(details *db.DeploymentDetails, testnetID string) error
- func DelNodes(num int, testnetID string) error
- func DeleteTestNet(testnetID string) error
- func GetDefaults(blockchain string) ([]byte, error)
- func GetParams(blockchain string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddNodes ¶
func AddNodes(details *db.DeploymentDetails, testnetID string) error
AddNodes allows for nodes to be added to the network. The nodes don't need to be of the same type of the original build. It is worth noting that any missing information from the given deployment details will be filled in from the origin build.
func AddTestNet ¶
func AddTestNet(details *db.DeploymentDetails, testnetID string) error
AddTestNet implements the build command. All blockchains Build command must be implemented here, other it will not be called during the build process.
func DeleteTestNet ¶
DeleteTestNet destroys all of the nodes of a testnet
func GetDefaults ¶
GetDefaults gets the default parameters for a blockchain. Ensure that the blockchain you have implemented is included in the switch statement.
Types ¶
This section is empty.