cmd

package
v0.0.0-...-ddfbed8 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:           "starbridge",
	Short:         "starbridge validator software",
	SilenceErrors: true,
	SilenceUsage:  true,
	RunE: func(cmd *cobra.Command, args []string) error {
		var (
			cfg     app.Config
			cfgPath = cmd.PersistentFlags().Lookup("conf").Value.String()
		)

		err := config.Read(cfgPath, &cfg)
		if err != nil {
			switch cause := errors.Cause(err).(type) {
			case *config.InvalidConfigError:
				return errors.Wrap(cause, "config file")
			default:
				return err
			}
		}

		cfg.EthereumFinalityBuffer = 6
		cfg.WithdrawalWindow = time.Hour * 24
		app := app.NewApp(cfg)
		app.Run()
		return nil
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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