Documentation
¶
Index ¶
- Variables
- func AddInitFlags(cmd *cobra.Command)
- func AddNodeFlags(cmd *cobra.Command)
- func AddWalletKeyCmdFlag(cmd *cobra.Command)
- func InitFilesWith(chainID string, config *cfg.Config, vcnt int, vsecret []byte, hcnt int, ...) error
- func NewInitFilesCmd() *cobra.Command
- func NewRunNodeCmd(nodeProvider node.Provider) *cobra.Command
- func NewWalletKeyCmd() *cobra.Command
- func ParseConfig() (*cfg.Config, error)
- func ResetAll(dbDir, addrBookFile, privValKeyFile, privValStateFile string, ...)
Constants ¶
This section is empty.
Variables ¶
var ResetAllCmd = &cobra.Command{ Use: "unsafe-reset-all", Aliases: []string{"unsafe_reset_all"}, Short: "(unsafe) Remove all the data and WAL, reset this beatoz's validator to genesis state", Run: resetAll, PreRun: deprecateSnakeCase, }
ResetAllCmd removes the database of this Tendermint core instance.
var ResetPrivValidatorCmd = &cobra.Command{ Use: "unsafe-reset-priv-validator", Aliases: []string{"unsafe_reset_priv_validator"}, Short: "(unsafe) Reset this beatoz's validator to genesis state", Run: resetPrivValidator, PreRun: deprecateSnakeCase, }
ResetPrivValidatorCmd resets the private validator files.
var RootCmd = &cobra.Command{ Use: "beatoz", Short: "BFT state machine replication for applications in any programming languages", PersistentPreRunE: func(cmd *cobra.Command, args []string) (err error) { if cmd.Name() == VersionCmd.Name() { return nil } rootConfig, err = ParseConfig() if err != nil { return err } if rootConfig.LogFormat == tmcfg.LogFormatJSON { logger = tmlog.NewTMJSONLogger(tmlog.NewSyncWriter(os.Stdout)) } logger, err = tmflags.ParseLogLevel(rootConfig.LogLevel, logger, tmcfg.DefaultLogLevel) if err != nil { return err } if viper.GetBool(cli.TraceFlag) { logger = tmlog.NewTracingLogger(logger) } logger = logger.With("module", "main") return nil }, }
RootCmd is the root command for Tendermint core.
var ShowNodeIDCmd = &cobra.Command{ Use: "show-node-id", Aliases: []string{"show_node_id"}, Short: "Show this node's ID", RunE: showNodeID, PreRun: deprecateSnakeCase, }
ShowNodeIDCmd dumps node's ID to the standard output.
var VersionCmd = &cobra.Command{ Use: "version", Short: "Show version info", Run: func(cmd *cobra.Command, args []string) { fmt.Println(xver.String()) }, }
VersionCmd ...
Functions ¶
func AddInitFlags ¶
func AddNodeFlags ¶
AddNodeFlags exposes some common configuration options on the command-line These are exposed for convenience of commands embedding a node
func AddWalletKeyCmdFlag ¶
func InitFilesWith ¶
func NewInitFilesCmd ¶
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.
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.
func NewWalletKeyCmd ¶
func ParseConfig ¶
ParseConfig retrieves the default environment configuration, sets up the Tendermint root and ensures that the root exists
Types ¶
This section is empty.