mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-29 00:58:11 -05:00
chore: move StageEnum to separate module (#2287)
This commit is contained in:
@@ -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;
|
||||
|
||||
14
bin/reth/src/args/stage_args.rs
Normal file
14
bin/reth/src/args/stage_args.rs
Normal file
@@ -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,
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
//! Database debugging tool
|
||||
use crate::{
|
||||
args::StageEnum,
|
||||
dirs::{DbPath, MaybePlatformPath},
|
||||
utils::DbTool,
|
||||
StageEnum,
|
||||
};
|
||||
use clap::Parser;
|
||||
use reth_db::{
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user