add unknown fork spec (#774)

This commit is contained in:
Sanket Shanbhag
2023-01-09 13:37:47 +05:30
committed by GitHub
parent 31cb66902e
commit d296946bf1
2 changed files with 8 additions and 1 deletions

View File

@@ -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");
}
}
}
}

View File

@@ -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
}