run

package
v0.0.0-...-adbeaea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2019 License: MIT Imports: 12 Imported by: 0

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

func AddHuronFlags(cmd *cobra.Command)

AddHuronFlags adds flags to the Huron command

func AddRaftFlags

func AddRaftFlags(cmd *cobra.Command)

AddRaftFlags adds flags to the Raft command

func AddSoloFlags

func AddSoloFlags(cmd *cobra.Command)

AddSoloFlags adds flags to the Solo command

func NewHuronCmd

func NewHuronCmd() *cobra.Command

NewHuronCmd returns the command that starts Shuffle with Huron consensus

func NewRaftCmd

func NewRaftCmd() *cobra.Command

NewRaftCmd returns the command that starts Shuffle with Raft consensus

func NewSoloCmd

func NewSoloCmd() *cobra.Command

NewSoloCmd returns the command that starts Shuffle with Solo consensus

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL