-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
125 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,54 @@ | ||
use clap::Subcommand; | ||
use import::ImportOpCommand; | ||
use import_receipts::ImportReceiptsOpCommand; | ||
use reth_cli_commands::{ | ||
config_cmd, db, dump_genesis, init_cmd, init_state, | ||
node::{self, NoArgs}, | ||
p2p, prune, recover, stage, | ||
}; | ||
use std::fmt; | ||
|
||
/// Helper function to build an import pipeline. | ||
pub mod build_pipeline; | ||
mod build_pipeline; | ||
pub mod import; | ||
pub mod import_receipts; | ||
|
||
/// Commands to be executed | ||
#[derive(Debug, Subcommand)] | ||
pub enum Commands<Ext: clap::Args + fmt::Debug = NoArgs> { | ||
/// Start the node | ||
#[command(name = "node")] | ||
Node(node::NodeCommand<Ext>), | ||
/// Initialize the database from a genesis file. | ||
#[command(name = "init")] | ||
Init(init_cmd::InitCommand), | ||
/// Initialize the database from a state dump file. | ||
#[command(name = "init-state")] | ||
InitState(init_state::InitStateCommand), | ||
/// This syncs RLP encoded OP blocks below Bedrock from a file, without executing. | ||
#[command(name = "import-op")] | ||
ImportOp(ImportOpCommand), | ||
/// This imports RLP encoded receipts from a file. | ||
#[command(name = "import-receipts-op")] | ||
ImportReceiptsOp(ImportReceiptsOpCommand), | ||
/// Dumps genesis block JSON configuration to stdout. | ||
DumpGenesis(dump_genesis::DumpGenesisCommand), | ||
/// Database debugging utilities | ||
#[command(name = "db")] | ||
Db(db::Command), | ||
/// Manipulate individual stages. | ||
#[command(name = "stage")] | ||
Stage(stage::Command), | ||
/// P2P Debugging utilities | ||
#[command(name = "p2p")] | ||
P2P(p2p::Command), | ||
/// Write config to stdout | ||
#[command(name = "config")] | ||
Config(config_cmd::Command), | ||
/// Scripts for node recovery | ||
#[command(name = "recover")] | ||
Recover(recover::Command), | ||
/// Prune according to the configuration without any limits | ||
#[command(name = "prune")] | ||
Prune(prune::PruneCommand), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters