node

package
v0.1.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VerifyRange = cobra.Command{
		Use:   "verify-range",
		Short: "Verify a range of slots from snapshot",
		PreRunE: func(cmd *cobra.Command, args []string) error {
			return initConfigAndBindFlags(cmd)
		},
		Run: func(cmd *cobra.Command, args []string) {
			runVerifyRange(cmd, args)
		},
	}

	// Run is the main command for running Mithril as a live full node.
	// This is the primary way most users will run Mithril.
	Run = cobra.Command{
		Use:   "run",
		Short: "Run Mithril full node (downloads snapshot, builds AccountsDB, replays blocks)",
		PreRunE: func(cmd *cobra.Command, args []string) error {
			return initConfigAndBindFlags(cmd)
		},
		Run: func(cmd *cobra.Command, args []string) {
			runLive(cmd, args)
		},
	}

	// VerifyLive is an alias for Run (kept for backwards compatibility)
	VerifyLive = cobra.Command{
		Use:    "verify-live",
		Short:  "Alias for 'run' (deprecated, use 'mithril run' instead)",
		Hidden: true,
		PreRunE: func(cmd *cobra.Command, args []string) error {
			return initConfigAndBindFlags(cmd)
		},
		Run: func(cmd *cobra.Command, args []string) {
			fmt.Println("Note: 'verify-live' is deprecated. Use 'mithril run' instead.")
			runLive(cmd, args)
		},
	}
)

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