diff --git a/bin/reth/src/args/mod.rs b/bin/reth/src/args/mod.rs index 166c0ad139..021bc8d37e 100644 --- a/bin/reth/src/args/mod.rs +++ b/bin/reth/src/args/mod.rs @@ -18,3 +18,7 @@ pub use secret_key::{get_secret_key, SecretKeyError}; /// MinerArgs struct for configuring the miner mod payload_build_args; pub use payload_build_args::PayloadBuilderArgs; + +/// Stage related arguments +mod stage_args; +pub use stage_args::StageEnum; diff --git a/bin/reth/src/args/stage_args.rs b/bin/reth/src/args/stage_args.rs new file mode 100644 index 0000000000..c2a9da6973 --- /dev/null +++ b/bin/reth/src/args/stage_args.rs @@ -0,0 +1,14 @@ +//! Shared arguments related to stages + +/// Represents a certain stage of the pipeline. +#[derive(Debug, Clone, Copy, Eq, PartialEq, PartialOrd, Ord, clap::ValueEnum)] +#[allow(missing_docs)] +pub enum StageEnum { + Headers, + Bodies, + Senders, + Execution, + Hashing, + Merkle, + TxLookup, +} diff --git a/bin/reth/src/drop_stage.rs b/bin/reth/src/drop_stage.rs index 8849bd0f51..c3a77ec3e2 100644 --- a/bin/reth/src/drop_stage.rs +++ b/bin/reth/src/drop_stage.rs @@ -1,8 +1,8 @@ //! Database debugging tool use crate::{ + args::StageEnum, dirs::{DbPath, MaybePlatformPath}, utils::DbTool, - StageEnum, }; use clap::Parser; use reth_db::{ diff --git a/bin/reth/src/lib.rs b/bin/reth/src/lib.rs index 6250b8038b..866a1e848b 100644 --- a/bin/reth/src/lib.rs +++ b/bin/reth/src/lib.rs @@ -23,14 +23,3 @@ pub mod stage; pub mod test_eth_chain; pub mod test_vectors; pub mod utils; - -#[derive(Debug, Clone, Copy, Eq, PartialEq, PartialOrd, Ord, clap::ValueEnum)] -enum StageEnum { - Headers, - Bodies, - Senders, - Execution, - Hashing, - Merkle, - TxLookup, -} diff --git a/bin/reth/src/stage/mod.rs b/bin/reth/src/stage/mod.rs index 589a5533b4..2f1f122bee 100644 --- a/bin/reth/src/stage/mod.rs +++ b/bin/reth/src/stage/mod.rs @@ -2,9 +2,9 @@ //! //! Stage debugging tool use crate::{ - args::{get_secret_key, NetworkArgs}, + args::{get_secret_key, NetworkArgs, StageEnum}, dirs::{ConfigPath, DbPath, MaybePlatformPath, PlatformPath, SecretKeyPath}, - prometheus_exporter, StageEnum, + prometheus_exporter, }; use clap::Parser; use reth_beacon_consensus::BeaconConsensus;