Documentation ¶
Index ¶
- Variables
- func AddLachesisFlags(cmd *cobra.Command)
- func AddRaftFlags(cmd *cobra.Command)
- func AddRunFlags(cmd *cobra.Command)
- func AddSoloFlags(cmd *cobra.Command)
- func NewLachesisCmd() *cobra.Command
- func NewRaftCmd() *cobra.Command
- func NewRunCmd() *cobra.Command
- func NewSoloCmd() *cobra.Command
- func ParseConfig() (*_config.Config, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "evm", Short: "LightWeight EVM", TraverseChildren: true, PersistentPreRunE: func(cmd *cobra.Command, args []string) (err error) { logger.Level = logLevel(config.BaseConfig.LogLevel) setEthereumLogLevel(config.BaseConfig.LogLevel) if cmd.Name() == VersionCmd.Name() { return nil } if err := bindFlagsLoadViper(cmd); err != nil { logger.WithError(err).Debug("bindFlagsLoadViper") return err } config, err = ParseConfig() if err != nil { logger.WithError(err).Debug("ParseConfig") return err } config.SetDataDir(config.BaseConfig.DataDir) logger.WithFields(logrus.Fields{ "Base": config.BaseConfig, "Eth": config.Eth, "Lachesis": config.Lachesis}).Debug("Config") return nil }, }
RootCmd is the root command for evm
View Source
var VersionCmd = &cobra.Command{ Use: "version", Short: "Show version info", Run: func(cmd *cobra.Command, args []string) { fmt.Println(version.Version) }, }
VersionCmd displays the version of the evm program being used
Functions ¶
func AddLachesisFlags ¶
AddLachesisFlags adds flags to the Lachesis command
func AddRaftFlags ¶
AddRaftFlags adds flags to the Raft command
func AddSoloFlags ¶
AddSoloFlags adds flags to the Solo command
func NewLachesisCmd ¶
NewLachesisCmd returns the command that starts EVM-Lite with Lachesis consensus
func NewRaftCmd ¶
NewRaftCmd returns the command that starts EVM-Lite with Raft consensus
func NewSoloCmd ¶
NewSoloCmd returns the command that starts EVM-Lite with Solo consensus
func ParseConfig ¶
ParseConfig retrieves the default environment configuration, sets up the Tendermint root and ensures that the root exists
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.