chore: rm optimism feature from chainspec (#11722)

This commit is contained in:
Matthias Seitz
2024-10-15 10:24:10 +02:00
committed by GitHub
parent 3ab1f9559e
commit 0b6397217c
13 changed files with 11 additions and 55 deletions

View File

@ -13,7 +13,7 @@ workspace = true
[dependencies]
# reth
reth-chainspec = { workspace = true, features = ["optimism"] }
reth-chainspec.workspace = true
reth-ethereum-forks.workspace = true
reth-primitives-traits.workspace = true
reth-network-peers.workspace = true

View File

@ -36,6 +36,7 @@ use reth_chainspec::{
};
use reth_ethereum_forks::{ChainHardforks, EthereumHardfork, ForkCondition, Hardfork};
use reth_network_peers::NodeRecord;
use reth_optimism_forks::OptimismHardforks;
use reth_primitives_traits::Header;
#[cfg(feature = "std")]
pub(crate) use std::sync::LazyLock;
@ -267,6 +268,8 @@ impl EthereumHardforks for OpChainSpec {
}
}
impl OptimismHardforks for OpChainSpec {}
impl From<Genesis> for OpChainSpec {
fn from(genesis: Genesis) -> Self {
use reth_optimism_forks::OptimismHardfork;