Skip to content

Commit

Permalink
feat(statetest): enable EOF in Prague tests (#1753)
Browse files Browse the repository at this point in the history
* feat(statetest): enable EOF in Prague tests

* statetest json PragueEOF to Prague
  • Loading branch information
rakita authored Sep 4, 2024
1 parent 89b65e1 commit d38ff45
Show file tree
Hide file tree
Showing 212 changed files with 1,717 additions and 1,714 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
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0xea6d1955dbd485fb2ba7fa7ec1215bd62b6da33f9d563785dfea37ef1d3aea65",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -118,7 +118,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0xfe99456f70a9b974fb603309b57c4ecaa39600c744f21e9d96632da27a968f26",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -189,7 +189,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x210d52732fba05728a2c0ddee898904a8bb0e302141df4084d9a1588e87846c2",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -260,7 +260,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x0830a5fff324459295c7cb1a30b9b41bb61ec430db546bf80b561f13e15b13e0",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x2c47b4070c1eef501d9548959c3abde2d8dc78ed1d819697c61d2b0861cc78cf",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -118,7 +118,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x0811964baccaaf645dad0bc74f2965ae05884aa8df47d5afe781b1a5320ff69d",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -189,7 +189,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x03f2bcefdc2878ca645cc6ecbe6e8fc24eb2f775b53eb24515849be5033432f6",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -260,7 +260,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0xbe262dfb926aef65e61f07e1819fde6e91ce64eefdbad7df0cba448aae6b7cd0",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x5e94cf42a27c0de450748e81c64b93b1a232be840d5b5fcc7dbe54943f0667c2",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x047ac0a772e4ac8ab931296ee30153aa532e3682561051d290a3322f93a2ef44",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x940f8b9fda3b4b279337e71c8a1f091c61b107912470a3a58a68d275f0656638",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -110,7 +110,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x8078c68a8a433831e2eb3190d3bcca8fc4681829e33efe017a32cd8da208003e",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -177,7 +177,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x6b914e3aec4bcb56ec0c1762500acaba60999f888df9bb30284fe16b75158659",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -244,7 +244,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0xc2beed5158d850588ee001df386e6057e242af5213dca6292870d14ec2e5e880",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -311,7 +311,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x3c39937b5ba6e4df08ba047da5cf78bed21cf98acd16c4aec43ccbd7abb8cfdd",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -378,7 +378,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x21ac6a18f6e1f63512baaae4977e8dc9d2f8a6a4b35831bcef0aa551c682067f",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -445,7 +445,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x7382c96342888b0f01f4d1bbdcbe8ce8e20b53eba5bdfb076bb0c6cc403c92b9",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -512,7 +512,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x01bfc3988fdd3f1d079353c0f45b66a1421771936ce936d190da0b6398399a7d",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -579,7 +579,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x47a3607089342b951314268f6f0556481b83c7d7ff4e234a8d56687692a3f5b3",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -646,7 +646,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x072cbf3e60b265f7e37cd289d5969919382e11015f5c8d9b5c964a5167a53729",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -713,7 +713,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x526f44a18c981bda27542116b50adfec68a5c57d0a99c27c7f905dffdd20d755",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -780,7 +780,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x116f952b4dfa068f7849f835064ec71337dfd15748f1fdba0c0ec31bd19df406",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -847,7 +847,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x0fc783fb0f35f7e6b665f8e030f3a09e7e750923d5dc22c826813f41367828e8",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -914,7 +914,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0xb92d4f02d82c5057180dc8ae98783f1a2b0397b390a06551fbfcf11bb7b0ad76",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -981,7 +981,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x8be82b1ce19dda6e6a6021b933ac81fede33c1e528c46fbc46238ccf12211ab8",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -1048,7 +1048,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x42bf723f7c962834f0e25fa518c9e3d1d4f14f86ffdf7c8e3bfb11a3b2adf0a4",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -1115,7 +1115,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0xe20746f4fe63545b30365eeda89b7f44829653c8c1ef92d1042934dad3ea5adc",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -1182,7 +1182,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x0dd02316bf484c0696ddc39d48573fb89a721d8b77129652ad891b0416ced35c",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x765d7e6396e4a510f4d2ae73421026c20aff3fa4c4667b3acccf15bb8974405a",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x257b6ddd48f5cf54ee926fbdda42e72f9752223d6e27cbacc7ec85d789d487ad",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x011fbaf7ef7682970bbca9cbff320edc2fdc62895b4a10b89c78479fa1a2ab4a",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0xa2e9fd4c48d6b28fb8eba8980b31ea9e02ae6414c8e9bf34ea620b8101c8c035",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x931fcda3aecb913db49b6d569999152263ae0d1a20232ffb74489aa370b60ac2",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x8d8e673f606ab844623dce57232cbf4fc72627df5521a51db0e0a6d3951cd3b6",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -106,7 +106,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x6cd5d3e337c42e25d3c3119c932344f8da13fa947dbd6c8a6a05b5fea3477676",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0xdb954ee87ac997cf3d0bafd44bd49a3e41a01301e06a9b9518b4bca636a1fac4",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -106,7 +106,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x5584119c88041b1a8d272ae72ce704c4d29785c8835849f74102142e798c2b2c",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x9b49ab1447fd989ff33430ebb96dfcdbf0a8571a51e5cce46ac38e3bb7f695a0",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down Expand Up @@ -106,7 +106,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x4696b874867ea37834a69affe1191b5086008c8df7a3ee162255f64bb4acc03e",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0x0fedfa8137ecd4ce07dbd62b4127b32bd493405d8f40ee13111abbfb8ba15c26",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"secretKey": "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8"
},
"post": {
"PragueEOF": [
"Prague": [
{
"hash": "0xdf3fc69a250b63b8a4679a1a7ce1b95548223bb62552f31f7e813744e10bff5f",
"logs": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
Expand Down
Loading

0 comments on commit d38ff45

Please sign in to comment.