Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RunCmd = &cobra.Command{ Use: "run", Short: "Run a node", TraverseChildren: true, PersistentPreRunE: func(cmd *cobra.Command, args []string) (err error) { if err := bindFlagsLoadViper(cmd); err != nil { return err } config, err = parseConfig() if err != nil { return err } logger = logrus.New() logger.Level = logLevel(config.BaseConfig.LogLevel) config.SetDataDir(config.BaseConfig.DataDir) logger.WithFields(logrus.Fields{ "Base": config.BaseConfig, "Eth": config.Eth}).Debug("Config") return nil }, }
RunCmd is launches a node
Functions ¶
func AddHuronFlags ¶
AddHuronFlags adds flags to the Huron command
func AddRaftFlags ¶
AddRaftFlags adds flags to the Raft command
func AddSoloFlags ¶
AddSoloFlags adds flags to the Solo command
func NewHuronCmd ¶
NewHuronCmd returns the command that starts Shuffle with Huron consensus
func NewRaftCmd ¶
NewRaftCmd returns the command that starts Shuffle with Raft consensus
func NewSoloCmd ¶
NewSoloCmd returns the command that starts Shuffle with Solo consensus
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.