fix: enable --dev for op-reth (#7755)

This commit is contained in:
Matthias Seitz
2024-04-19 18:34:07 +02:00
committed by GitHub
parent 34c5b42524
commit 4f7f690ac1

View File

@ -9,11 +9,13 @@ use std::{
time::Duration, time::Duration,
}; };
use reth_primitives::DEV;
#[cfg(feature = "optimism")] #[cfg(feature = "optimism")]
use reth_primitives::{BASE_MAINNET, BASE_SEPOLIA, OP_MAINNET, OP_SEPOLIA}; use reth_primitives::{BASE_MAINNET, BASE_SEPOLIA, OP_MAINNET, OP_SEPOLIA};
#[cfg(not(feature = "optimism"))] #[cfg(not(feature = "optimism"))]
use reth_primitives::{DEV, GOERLI, HOLESKY, MAINNET, SEPOLIA}; use reth_primitives::{GOERLI, HOLESKY, MAINNET, SEPOLIA};
#[cfg(feature = "optimism")] #[cfg(feature = "optimism")]
/// Chains supported by op-reth. First value should be used as the default. /// Chains supported by op-reth. First value should be used as the default.
@ -77,7 +79,6 @@ pub fn genesis_value_parser(s: &str) -> eyre::Result<Arc<ChainSpec>, eyre::Error
"sepolia" => SEPOLIA.clone(), "sepolia" => SEPOLIA.clone(),
#[cfg(not(feature = "optimism"))] #[cfg(not(feature = "optimism"))]
"holesky" => HOLESKY.clone(), "holesky" => HOLESKY.clone(),
#[cfg(not(feature = "optimism"))]
"dev" => DEV.clone(), "dev" => DEV.clone(),
#[cfg(feature = "optimism")] #[cfg(feature = "optimism")]
"optimism" => OP_MAINNET.clone(), "optimism" => OP_MAINNET.clone(),