Skip to content

Commit 79c71b8

Browse files
chore: Remove reth recover storage-tries sub-command (paradigmxyz#18580)
1 parent 9806e07 commit 79c71b8

File tree

9 files changed

+2
-141
lines changed

9 files changed

+2
-141
lines changed

crates/cli/commands/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ pub mod node;
2424
pub mod p2p;
2525
pub mod prune;
2626
pub mod re_execute;
27-
pub mod recover;
2827
pub mod stage;
2928
#[cfg(feature = "arbitrary")]
3029
pub mod test_vectors;

crates/cli/commands/src/recover/mod.rs

Lines changed: 0 additions & 45 deletions
This file was deleted.

crates/cli/commands/src/recover/storage_tries.rs

Lines changed: 0 additions & 76 deletions
This file was deleted.

crates/ethereum/cli/src/app.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,6 @@ where
165165
}
166166
Commands::P2P(command) => runner.run_until_ctrl_c(command.execute::<N>()),
167167
Commands::Config(command) => runner.run_until_ctrl_c(command.execute()),
168-
Commands::Recover(command) => {
169-
runner.run_command_until_exit(|ctx| command.execute::<N>(ctx))
170-
}
171168
Commands::Prune(command) => runner.run_until_ctrl_c(command.execute::<N>()),
172169
#[cfg(feature = "dev")]
173170
Commands::TestVectors(command) => runner.run_until_ctrl_c(command.execute()),

crates/ethereum/cli/src/interface.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use reth_cli_commands::{
1212
config_cmd, db, download, dump_genesis, export_era, import, import_era, init_cmd, init_state,
1313
launcher::FnLauncher,
1414
node::{self, NoArgs},
15-
p2p, prune, re_execute, recover, stage,
15+
p2p, prune, re_execute, stage,
1616
};
1717
use reth_cli_runner::CliRunner;
1818
use reth_db::DatabaseEnv;
@@ -260,9 +260,6 @@ pub enum Commands<C: ChainSpecParser, Ext: clap::Args + fmt::Debug> {
260260
/// Write config to stdout
261261
#[command(name = "config")]
262262
Config(config_cmd::Command),
263-
/// Scripts for node recovery
264-
#[command(name = "recover")]
265-
Recover(recover::Command<C>),
266263
/// Prune according to the configuration without any limits
267264
#[command(name = "prune")]
268265
Prune(prune::PruneCommand<C>),
@@ -289,7 +286,6 @@ impl<C: ChainSpecParser, Ext: clap::Args + fmt::Debug> Commands<C, Ext> {
289286
#[cfg(feature = "dev")]
290287
Self::TestVectors(_) => None,
291288
Self::Config(_) => None,
292-
Self::Recover(cmd) => cmd.chain_spec(),
293289
Self::Prune(cmd) => cmd.chain_spec(),
294290
Self::ReExecute(cmd) => cmd.chain_spec(),
295291
}

crates/optimism/cli/src/app.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ where
102102
}
103103
Commands::P2P(command) => runner.run_until_ctrl_c(command.execute::<OpNode>()),
104104
Commands::Config(command) => runner.run_until_ctrl_c(command.execute()),
105-
Commands::Recover(command) => {
106-
runner.run_command_until_exit(|ctx| command.execute::<OpNode>(ctx))
107-
}
108105
Commands::Prune(command) => runner.run_until_ctrl_c(command.execute::<OpNode>()),
109106
#[cfg(feature = "dev")]
110107
Commands::TestVectors(command) => runner.run_until_ctrl_c(command.execute()),

crates/optimism/cli/src/commands/mod.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use reth_cli::chainspec::ChainSpecParser;
77
use reth_cli_commands::{
88
config_cmd, db, dump_genesis, init_cmd,
99
node::{self, NoArgs},
10-
p2p, prune, re_execute, recover, stage,
10+
p2p, prune, re_execute, stage,
1111
};
1212
use std::{fmt, sync::Arc};
1313

@@ -51,9 +51,6 @@ pub enum Commands<Spec: ChainSpecParser = OpChainSpecParser, Ext: clap::Args + f
5151
/// Write config to stdout
5252
#[command(name = "config")]
5353
Config(config_cmd::Command),
54-
/// Scripts for node recovery
55-
#[command(name = "recover")]
56-
Recover(recover::Command<Spec>),
5754
/// Prune according to the configuration without any limits
5855
#[command(name = "prune")]
5956
Prune(prune::PruneCommand<Spec>),
@@ -82,7 +79,6 @@ impl<
8279
Self::Stage(cmd) => cmd.chain_spec(),
8380
Self::P2P(cmd) => cmd.chain_spec(),
8481
Self::Config(_) => None,
85-
Self::Recover(cmd) => cmd.chain_spec(),
8682
Self::Prune(cmd) => cmd.chain_spec(),
8783
Self::ImportOp(cmd) => cmd.chain_spec(),
8884
Self::ImportReceiptsOp(cmd) => cmd.chain_spec(),

docs/vocs/docs/pages/cli/SUMMARY.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,5 @@
4040
- [`reth p2p rlpx ping`](/cli/reth/p2p/rlpx/ping)
4141
- [`reth p2p bootnode`](/cli/reth/p2p/bootnode)
4242
- [`reth config`](/cli/reth/config)
43-
- [`reth recover`](/cli/reth/recover)
44-
- [`reth recover storage-tries`](/cli/reth/recover/storage-tries)
4543
- [`reth prune`](/cli/reth/prune)
4644
- [`reth re-execute`](/cli/reth/re-execute)

docs/vocs/docs/pages/cli/reth.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Commands:
2121
stage Manipulate individual stages
2222
p2p P2P Debugging utilities
2323
config Write config to stdout
24-
recover Scripts for node recovery
2524
prune Prune according to the configuration without any limits
2625
re-execute Re-execute blocks in parallel to verify historical sync correctness
2726
help Print this message or the help of the given subcommand(s)

0 commit comments

Comments
 (0)