mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-09 15:28:01 -05:00
chore: Remove ForkSpec::Unknown and Add ForkSpec::Prague (#16055)
This commit is contained in:
@@ -61,8 +61,7 @@ impl BlockchainTestCase {
|
|||||||
ForkSpec::ConstantinopleFix |
|
ForkSpec::ConstantinopleFix |
|
||||||
ForkSpec::MergeEOF |
|
ForkSpec::MergeEOF |
|
||||||
ForkSpec::MergeMeterInitCode |
|
ForkSpec::MergeMeterInitCode |
|
||||||
ForkSpec::MergePush0 |
|
ForkSpec::MergePush0
|
||||||
ForkSpec::Unknown
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -308,9 +308,8 @@ pub enum ForkSpec {
|
|||||||
MergePush0,
|
MergePush0,
|
||||||
/// Cancun
|
/// Cancun
|
||||||
Cancun,
|
Cancun,
|
||||||
/// Fork Spec which is unknown to us
|
/// Prague
|
||||||
#[serde(other)]
|
Prague,
|
||||||
Unknown,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<ForkSpec> for ChainSpec {
|
impl From<ForkSpec> for ChainSpec {
|
||||||
@@ -342,9 +341,7 @@ impl From<ForkSpec> for ChainSpec {
|
|||||||
ForkSpec::ByzantiumToConstantinopleAt5 | ForkSpec::Constantinople => {
|
ForkSpec::ByzantiumToConstantinopleAt5 | ForkSpec::Constantinople => {
|
||||||
panic!("Overridden with PETERSBURG")
|
panic!("Overridden with PETERSBURG")
|
||||||
}
|
}
|
||||||
ForkSpec::Unknown => {
|
ForkSpec::Prague => spec_builder.prague_activated(),
|
||||||
panic!("Unknown fork");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.build()
|
.build()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user