Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StartBootNodeCmd = &cobra.Command{ Use: "start-boot-node", Short: "Starts boot node for discovery based ENR", Run: func(cmd *cobra.Command, args []string) { if err := cleanenv.ReadConfig(globalArgs.ConfigPath, &cfg); err != nil { log.Fatal(err) } loggerLevel, err := logex.GetLoggerLevelValue(cfg.LogLevel) Logger := logex.Build(cmd.Parent().Short, loggerLevel, cfg.GlobalConfig.LogFormat) if err != nil { Logger.Warn(fmt.Sprintf("Default log level set to %s", loggerLevel), zap.Error(err)) } cfg.Options.Logger = Logger bootNode := bootnode.New(cfg.Options) if err := bootNode.Start(cmd.Context()); err != nil { Logger.Fatal("failed to start boot node", zap.Error(err)) } }, }
StartBootNodeCmd is the command to start SSV boot node
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.