chore: move StageEnum to separate module (#2287)

This commit is contained in:
Matthias Seitz
2023-04-19 09:27:51 +02:00
committed by GitHub
parent 534d23eed8
commit a22f988097
5 changed files with 21 additions and 14 deletions

View File

@@ -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;

View 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,
}

View File

@@ -1,8 +1,8 @@
//! Database debugging tool
use crate::{
args::StageEnum,
dirs::{DbPath, MaybePlatformPath},
utils::DbTool,
StageEnum,
};
use clap::Parser;
use reth_db::{

View File

@@ -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,
}

View File

@@ -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;