mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-29 17:18:08 -05:00
add unknown fork spec (#774)
This commit is contained in:
@@ -208,6 +208,9 @@ pub enum ForkSpec {
|
||||
/// After Merge plus new PUSH0 opcode
|
||||
#[serde(alias = "Merge+3855")]
|
||||
MergePush0,
|
||||
/// Fork Spec which is unknown to us
|
||||
#[serde(other)]
|
||||
Unknown,
|
||||
}
|
||||
|
||||
impl From<ForkSpec> for reth_executor::SpecUpgrades {
|
||||
@@ -238,6 +241,9 @@ impl From<ForkSpec> for reth_executor::SpecUpgrades {
|
||||
ForkSpec::ByzantiumToConstantinopleAt5 | ForkSpec::Constantinople => {
|
||||
panic!("Overridden with PETERSBURG")
|
||||
}
|
||||
ForkSpec::Unknown => {
|
||||
panic!("Unknown fork");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -91,7 +91,8 @@ pub async fn run_test(path: PathBuf) -> eyre::Result<()> {
|
||||
ForkSpec::MergeEOF |
|
||||
ForkSpec::MergeMeterInitCode |
|
||||
ForkSpec::MergePush0 |
|
||||
ForkSpec::Shanghai,
|
||||
ForkSpec::Shanghai |
|
||||
ForkSpec::Unknown
|
||||
) {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user