Documentation ¶
Overview ¶
Package cmd provides the cli for running the halo consensus client.
Index ¶
- func DefaultCometConfig(homeDir string) cfg.Config
- func InitFiles(ctx context.Context, initCfg InitConfig) error
- func MakeGenesis(network netconf.ID, valPubKeys ...crypto.PubKey) (*types.GenesisDoc, error)
- func New() *cobra.Command
- func WriteCometConfig(path string, config *cfg.Config) (err error)
- type InitConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultCometConfig ¶
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 ¶
Types ¶
type InitConfig ¶
type InitConfig struct { HomeDir string Moniker string Network netconf.ID TrustedSync bool AddrBook bool LogCfgFunc func(*log.Config) HaloCfgFunc func(*halocfg.Config) CometCfgFunc func(*cmtconfig.Config) Force bool Clean bool ExecutionHash common.Hash GenesisUpgrade string // Zero value omits network upgrade genesis tx }
InitConfig is the config for the init command.
func (InitConfig) CometCfg ¶
func (c InitConfig) CometCfg(cfg *cmtconfig.Config)
func (InitConfig) HaloCfg ¶
func (c InitConfig) HaloCfg(cfg *halocfg.Config)
func (InitConfig) LogCfg ¶
func (c InitConfig) LogCfg() log.Config
func (InitConfig) Verify ¶
func (c InitConfig) Verify() error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.