node

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeHeight

func GetNodeHeight(log log.Logger, p *types.ProcessType, abciEndpoint string) (int, error)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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