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.
Click to show internal directories.
Click to hide internal directories.