run

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: MIT Imports: 11 Imported by: 1

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.LogLevel)

		logger.WithField("Version", version.Version).Info("Run")

		config.SetDataDir(config.DataDir)

		logger.WithFields(logrus.Fields{
			"Base": config}).Debug("Config")

		return nil
	},
}

RunCmd is launches a node

Functions

func AddSoloFlags

func AddSoloFlags(cmd *cobra.Command)

AddSoloFlags adds flags to the Solo command

func NewSoloCmd

func NewSoloCmd() *cobra.Command

NewSoloCmd returns the command that starts EVM-Lite 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