test(chain): add shanghai forkspecs (#700)

This commit is contained in:
Roman Krasiuk
2023-01-03 18:33:55 +02:00
committed by GitHub
parent 3a67809cb7
commit 93b6ce597a
2 changed files with 7 additions and 1 deletions

View File

@ -197,6 +197,8 @@ pub enum ForkSpec {
London,
/// Paris aka The Merge
Merge,
/// Shanghai
Shanghai,
/// Merge EOF test
#[serde(alias = "Merge+3540+3670")]
MergeEOF,
@ -230,6 +232,9 @@ impl From<ForkSpec> for reth_executor::SpecUpgrades {
ForkSpec::MergeEOF => Self::new_paris_activated(),
ForkSpec::MergeMeterInitCode => Self::new_paris_activated(),
ForkSpec::MergePush0 => Self::new_paris_activated(),
ForkSpec::Shanghai => {
panic!("Not supported")
}
ForkSpec::ByzantiumToConstantinopleAt5 | ForkSpec::Constantinople => {
panic!("Overriden with PETERSBURG")
}

View File

@ -90,7 +90,8 @@ pub async fn run_test(path: PathBuf) -> eyre::Result<()> {
ForkSpec::ConstantinopleFix |
ForkSpec::MergeEOF |
ForkSpec::MergeMeterInitCode |
ForkSpec::MergePush0,
ForkSpec::MergePush0 |
ForkSpec::Shanghai,
) {
continue
}