mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-08 23:08:19 -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::MergeEOF |
|
||||
ForkSpec::MergeMeterInitCode |
|
||||
ForkSpec::MergePush0 |
|
||||
ForkSpec::Unknown
|
||||
ForkSpec::MergePush0
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user