cmd

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: GPL-3.0 Imports: 31 Imported by: 0

Documentation

Overview

Package cmd provides the cli for running the halo consensus client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultCometConfig

func DefaultCometConfig(homeDir string) cfg.Config

DefaultCometConfig returns the default cometBFT config.

func InitFiles

func InitFiles(ctx context.Context, initCfg InitConfig) error

InitFiles initializes the files and folders required by halo. It ensures a network and genesis file is generated/downloaded for the provided network.

func MakeGenesis

func MakeGenesis(network netconf.ID, valPubKeys ...crypto.PubKey) (*types.GenesisDoc, error)

func New

func New() *cobra.Command

New returns a new root cobra command that handles our command line tool.

Types

type InitConfig

type InitConfig struct {
	HomeDir      string
	Network      netconf.ID
	TrustedSync  bool
	RCPEndpoints xchain.RPCEndpoints
	Force        bool
	Clean        bool
	Cosmos       bool
}

InitConfig is the config for the init command.

Jump to

Keyboard shortcuts

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