Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "minter", Short: "Minter Go Node", PersistentPreRun: func(cmd *cobra.Command, args []string) { v := viper.New() v.SetConfigFile(utils.GetMinterConfigPath()) cfg = config.GetConfig() if err := v.ReadInConfig(); err != nil { panic(err) } if err := v.Unmarshal(cfg); err != nil { panic(err) } log.InitLog(cfg) }, }
View Source
var RunNode = &cobra.Command{ Use: "node", Short: "Run the Minter node", RunE: func(cmd *cobra.Command, args []string) error { return runNode() }, }
View Source
var ShowNodeId = &cobra.Command{
Use: "show_node_id",
Short: "Show this node's ID",
RunE: showNodeId,
}
View Source
var ShowValidator = &cobra.Command{
Use: "show_validator",
Short: "Show this node's validator public key",
RunE: showValidator,
}
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.