Documentation
¶
Index ¶
- func GetNodeHeight(log log.Logger, p *types.ProcessType, abciEndpoint string) (int, error)
- func ShutdownNode(p *types.ProcessType) error
- func StartGhostNode(cfg *types.SupervysorConfig, log log.Logger, p *types.ProcessType, ...) (*os.Process, error)
- func StartNode(cfg *types.SupervysorConfig, log log.Logger, p *types.ProcessType, ...) (*os.Process, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNodeHeight ¶
The GetNodeHeight function retrieves the height of the node by querying the ABCI endpoint. It uses exponential backoff
func ShutdownNode ¶ added in v0.2.0
func ShutdownNode(p *types.ProcessType) error
func StartGhostNode ¶ added in v0.2.0
func StartGhostNode(cfg *types.SupervysorConfig, log log.Logger, p *types.ProcessType, restart bool, flags string) (*os.Process, error)
StartGhostNode starts the node process in Ghost Mode and returns the os.Process object representing the running process. It moves the address book, checks if the node is already running or in Ghost Mode ands sets the appropriate command arguments based on the binaryPath. It starts the node without seeds and with a changed laddr, so the node can't continue syncing.
func StartNode ¶ added in v0.2.0
func StartNode(cfg *types.SupervysorConfig, log log.Logger, p *types.ProcessType, initial bool, restart bool, flags string) (*os.Process, error)
StartNode starts the node process in Normal Mode and returns the os.Process object representing the running process. It checks if the node is being started initially or not, moves the address book if necessary, and sets the appropriate command arguments based on the binaryPath.
Types ¶
This section is empty.