refactor: move ethereum-forks crate into ethereum folder (#15983)

This commit is contained in:
Pana
2025-04-29 15:54:25 +08:00
committed by GitHub
parent c19dfe9531
commit 91defb2f9c
6 changed files with 5 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ members = [
"crates/era-downloader",
"crates/era-utils",
"crates/errors/",
"crates/ethereum-forks/",
"crates/ethereum/hardforks/",
"crates/ethereum/cli/",
"crates/ethereum/consensus/",
"crates/ethereum/engine-primitives/",
@@ -353,7 +353,7 @@ reth-eth-wire-types = { path = "crates/net/eth-wire-types" }
reth-ethereum-cli = { path = "crates/ethereum/cli" }
reth-ethereum-consensus = { path = "crates/ethereum/consensus", default-features = false }
reth-ethereum-engine-primitives = { path = "crates/ethereum/engine-primitives", default-features = false }
reth-ethereum-forks = { path = "crates/ethereum-forks", default-features = false }
reth-ethereum-forks = { path = "crates/ethereum/hardforks", default-features = false }
reth-ethereum-payload-builder = { path = "crates/ethereum/payload" }
reth-ethereum-primitives = { path = "crates/ethereum/primitives", default-features = false }
reth-ethereum = { path = "crates/ethereum/reth" }

View File

@@ -84,7 +84,8 @@ impl core::fmt::Display for DisplayFork {
// - Paris @58750000000000000000000 (network is known to be merged)
// Post-merge hard forks (timestamp based):
// - Shanghai @1681338455
// - Cancun @1710338135"
// - Cancun @1710338135
// - Prague @1746612311
/// ```
#[derive(Debug)]
pub struct DisplayHardforks {

View File

@@ -34,5 +34,6 @@ pub static DEV_HARDFORKS: LazyLock<ChainHardforks> = LazyLock::new(|| {
),
(EthereumHardfork::Shanghai.boxed(), ForkCondition::Timestamp(0)),
(EthereumHardfork::Cancun.boxed(), ForkCondition::Timestamp(0)),
(EthereumHardfork::Prague.boxed(), ForkCondition::Timestamp(0)),
])
});