Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var InitFilesCmd = &cobra.Command{
Use: "init",
Short: "Initialize Dymint",
RunE: initFiles,
}
InitFilesCmd initialises a fresh Dymint Core instance.
View Source
var RootCmd = &cobra.Command{ Use: "dymint", Short: "ABCI-client implementation for dymension's autonomous rollapps", PersistentPreRunE: func(cmd *cobra.Command, args []string) (err error) { v := viper.GetViper() if err := v.BindPFlags(cmd.Flags()); err != nil { return err } tmconfig, err = ParseConfig(cmd) if err != nil { return err } if tmconfig.LogFormat == cfg.LogFormatJSON { logger = log.NewTMJSONLogger(log.NewSyncWriter(os.Stdout)) } logger, err = tmflags.ParseLogLevel(tmconfig.LogLevel, logger, cfg.DefaultLogLevel) if err != nil { return err } if viper.GetBool(cli.TraceFlag) { logger = log.NewTracingLogger(logger) } logger = logger.With("module", "main") return nil }, }
RootCmd is the root command for Dymint core.
View Source
var ShowNodeIDCmd = &cobra.Command{ Use: "show-node-id", Aliases: []string{"show_node_id"}, Short: "Show this node's ID", RunE: showNodeID, }
ShowNodeIDCmd dumps node's ID to the standard output.
View Source
var ShowSequencer = &cobra.Command{ Use: "show-sequencer", Aliases: []string{"show_sequencer"}, Short: "Show this node's sequencer info", RunE: showSequencer, }
ShowSequencer adds capabilities for showing the validator info.
Functions ¶
func InitFilesWithConfig ¶
InitFilesWithConfig initialises a fresh Dymint instance.
func NewRunNodeCmd ¶
NewRunNodeCmd returns the command that allows the CLI to start a node. It can be used with a custom PrivValidator and in-process ABCI application.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.