chore: Remove ForkSpec::Unknown and Add ForkSpec::Prague (#16055)

This commit is contained in:
kevaundray
2025-05-05 08:42:59 +01:00
committed by GitHub
parent 1ba12aeeaa
commit 53b2cdafee
2 changed files with 4 additions and 8 deletions

View File

@@ -61,8 +61,7 @@ impl BlockchainTestCase {
ForkSpec::ConstantinopleFix |
ForkSpec::MergeEOF |
ForkSpec::MergeMeterInitCode |
ForkSpec::MergePush0 |
ForkSpec::Unknown
ForkSpec::MergePush0
)
}

View File

@@ -308,9 +308,8 @@ pub enum ForkSpec {
MergePush0,
/// Cancun
Cancun,
/// Fork Spec which is unknown to us
#[serde(other)]
Unknown,
/// Prague
Prague,
}
impl From<ForkSpec> for ChainSpec {
@@ -342,9 +341,7 @@ impl From<ForkSpec> for ChainSpec {
ForkSpec::ByzantiumToConstantinopleAt5 | ForkSpec::Constantinople => {
panic!("Overridden with PETERSBURG")
}
ForkSpec::Unknown => {
panic!("Unknown fork");
}
ForkSpec::Prague => spec_builder.prague_activated(),
}
.build()
}