Skip to content

Commit

Permalink
feat(statetest): enable EOF in Prague tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rakita committed Sep 4, 2024
1 parent 89b65e1 commit a3f9da3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions bins/revme/src/cmd/statetest/models/spec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ pub enum SpecName {
Shanghai,
Cancun,
Prague,
PragueEOF,
Osaka, // SKIPPED
#[serde(other)]
Unknown,
Expand All @@ -49,7 +48,6 @@ impl SpecName {
Self::Shanghai => SpecId::SHANGHAI,
Self::Cancun => SpecId::CANCUN,
Self::Prague => SpecId::PRAGUE,
Self::PragueEOF => SpecId::PRAGUE_EOF,
Self::ByzantiumToConstantinopleAt5 | Self::Constantinople => {
panic!("Overridden with PETERSBURG")
}
Expand Down
7 changes: 6 additions & 1 deletion bins/revme/src/cmd/statetest/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,12 @@ pub fn execute_test_suite(
continue;
}

let spec_id = spec_name.to_spec_id();
// Enable EOF in Prague tests.
let spec_id = if spec_name == SpecName::Prague {
SpecId::PRAGUE_EOF
} else {
spec_name.to_spec_id()
};

if spec_id.is_enabled_in(SpecId::MERGE) && env.block.prevrandao.is_none() {
// if spec is merge and prevrandao is not set, set it to default
Expand Down

0 comments on commit a3f9da3

Please sign in to comment.