Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EIP2315] Add tests for subroutines #685

Merged
merged 7 commits into from
May 24, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 109 additions & 0 deletions BlockchainTests/GeneralStateTests/stSubroutine/simpleSubroutine.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"simpleSubroutine_d0g0v0_Berlin" : {
"_info" : {
"comment" : "",
"filling-rpc-server" : "besu/v1.4.5/osx-x86_64/adoptopenjdk-java-13",
"filling-tool-version" : "retesteth-0.0.2+commit.e8018889.Darwin.appleclang",
"lllcversion" : "Version: 0.5.14-develop.2020.4.27+commit.8f259595.Darwin.appleclang",
"source" : "src/GeneralStateTestsFiller/stSubroutine/simpleSubroutineFiller.json",
"sourceHash" : "6fff9082efff52e3afdade9e0d411be9497aa9bb9f9622dd8e64d55c56bc4e75"
},
"genesisBlockHeader" : {
"bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"difficulty" : "0x020000",
"extraData" : "0x00",
"gasLimit" : "0x7fffffffffffffff",
"gasUsed" : "0x00",
"hash" : "0x59c11cf4e255432f2e2150f21b3dee500de2a4c2ec3380571740ede08a4c265e",
"mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce" : "0x0000000000000000",
"number" : "0x00",
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"stateRoot" : "0xb594fedc462781f15c678a9803177aa5b1799432d80466dc1b7defd9889b7b71",
"timestamp" : "0x00",
"transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
"pre" : {
"0x1000000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x6004b300b2b7",
"nonce" : "0x00",
"storage" : {
}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x7fffffffffffffff",
"code" : "0x",
"nonce" : "0x00",
"storage" : {
}
}
},
"postState" : {
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"code" : "0x",
"nonce" : "0x01",
"balance" : "0x7fffffffffffade9",
"storage" : {
}
},
"0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : {
"code" : "0x",
"nonce" : "0x00",
"balance" : "0x1bc16d674ec85216",
"storage" : {
}
},
"0x1000000000000000000000000000000000000000" : {
"code" : "0x6004b300b2b7",
"nonce" : "0x00",
"balance" : "0x0de0b6b3a7640000",
"storage" : {
}
}
},
"network" : "Berlin",
"sealEngine" : "NoProof",
"lastblockhash" : "0xcdb1920e8df4de77868e9d60699982580e986d2cc92ae4f8eca5379562d83548",
"genesisRLP" : "0xf901fdf901f8a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa0b594fedc462781f15c678a9803177aa5b1799432d80466dc1b7defd9889b7b71a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000080887fffffffffffffff808000a00000000000000000000000000000000000000000000000000000000000000000880000000000000000c0c0",
"blocks" : [
{
"rlp" : "0xf90264f901fca059c11cf4e255432f2e2150f21b3dee500de2a4c2ec3380571740ede08a4c265ea01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa0e005602a388aacac834a06f76603bbcfbd937c2fb8deddebfb6d5202f86f4cf5a07bbad74a5b4f94ab79f9c09a33e7bc62ee345c027b337fdc7365ad8a7b4d4881a0e7dd0ba5a7aa80e53601651b16cd8f8772feda742b283c578943036d13e1e79ab90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000001887fffffffffffffff8252168203e880a00000000000000000000000000000000000000000000000000000000000000000880000000000000000f862f860800183061a8094100000000000000000000000000000000000000080801ca0436c8420915217ae867d043179d78b4a8abc7a66f7658df0a06d4aa1f60475f3a017eab00aa21e61a07156519a1639a46bf5fb97e3fb07ea39ca885e9bb9145360c0",
"blockHeader" : {
"bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"difficulty" : "0x020000",
"extraData" : "0x",
"gasLimit" : "0x7fffffffffffffff",
"gasUsed" : "0x5216",
"hash" : "0xcdb1920e8df4de77868e9d60699982580e986d2cc92ae4f8eca5379562d83548",
"mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce" : "0x0000000000000000",
"number" : "0x01",
"parentHash" : "0x59c11cf4e255432f2e2150f21b3dee500de2a4c2ec3380571740ede08a4c265e",
"receiptTrie" : "0xe7dd0ba5a7aa80e53601651b16cd8f8772feda742b283c578943036d13e1e79a",
"stateRoot" : "0xe005602a388aacac834a06f76603bbcfbd937c2fb8deddebfb6d5202f86f4cf5",
"timestamp" : "0x03e8",
"transactionsTrie" : "0x7bbad74a5b4f94ab79f9c09a33e7bc62ee345c027b337fdc7365ad8a7b4d4881",
"uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
"transactions" : [
{
"data" : "0x",
"gasLimit" : "0x061a80",
"gasPrice" : "0x01",
"nonce" : "0x00",
"to" : "0x1000000000000000000000000000000000000000",
"value" : "0x00",
"v" : "0x1c",
"r" : "0x436c8420915217ae867d043179d78b4a8abc7a66f7658df0a06d4aa1f60475f3",
"s" : "0x17eab00aa21e61a07156519a1639a46bf5fb97e3fb07ea39ca885e9bb9145360"
}
]
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"subroutineAtEndOfCode_d0g0v0_Berlin" : {
"_info" : {
"comment" : "",
"filling-rpc-server" : "besu/v1.4.5/osx-x86_64/adoptopenjdk-java-13",
"filling-tool-version" : "retesteth-0.0.2+commit.e8018889.Darwin.appleclang",
"lllcversion" : "Version: 0.5.14-develop.2020.4.27+commit.8f259595.Darwin.appleclang",
"source" : "src/GeneralStateTestsFiller/stSubroutine/subroutineAtEndOfCodeFiller.json",
"sourceHash" : "b31d61eeeb38a45d84af6ec64bb194cd43562ca20641c320e1876dbc3a83033c"
},
"genesisBlockHeader" : {
"bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"difficulty" : "0x020000",
"extraData" : "0x00",
"gasLimit" : "0x7fffffffffffffff",
"gasUsed" : "0x00",
"hash" : "0x93fb8119bc644519b546c5385e5e24b7adf8184256cb034b10b2a5b41966af2e",
"mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce" : "0x0000000000000000",
"number" : "0x00",
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"stateRoot" : "0xe989783d027d15a0ecb77ce4529bb70444206287db328e7b524d2cd3d771ec03",
"timestamp" : "0x00",
"transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
"pre" : {
"0x1000000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x600556b2b75b6003b3",
"nonce" : "0x00",
"storage" : {
}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x7fffffffffffffff",
"code" : "0x",
"nonce" : "0x00",
"storage" : {
}
}
},
"postState" : {
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"code" : "0x",
"nonce" : "0x01",
"balance" : "0x7fffffffffffaddd",
"storage" : {
}
},
"0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : {
"code" : "0x",
"nonce" : "0x00",
"balance" : "0x1bc16d674ec85222",
"storage" : {
}
},
"0x1000000000000000000000000000000000000000" : {
"code" : "0x600556b2b75b6003b3",
"nonce" : "0x00",
"balance" : "0x0de0b6b3a7640000",
"storage" : {
}
}
},
"network" : "Berlin",
"sealEngine" : "NoProof",
"lastblockhash" : "0x0b2e79025b5ef0fe98cab0b8864d72ec88f3023dac402134fa59a204c0ed953e",
"genesisRLP" : "0xf901fdf901f8a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa0e989783d027d15a0ecb77ce4529bb70444206287db328e7b524d2cd3d771ec03a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000080887fffffffffffffff808000a00000000000000000000000000000000000000000000000000000000000000000880000000000000000c0c0",
"blocks" : [
{
"rlp" : "0xf90264f901fca093fb8119bc644519b546c5385e5e24b7adf8184256cb034b10b2a5b41966af2ea01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa0e8b559bbcbbbced810edb9c0369acb9ffbeb90f438721cf92d31db8bfee2d776a07bbad74a5b4f94ab79f9c09a33e7bc62ee345c027b337fdc7365ad8a7b4d4881a08ba76ce9b2d823eca3590058dc06297e8ecfa2944bdfa060a706027df832e1b1b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000001887fffffffffffffff8252228203e880a00000000000000000000000000000000000000000000000000000000000000000880000000000000000f862f860800183061a8094100000000000000000000000000000000000000080801ca0436c8420915217ae867d043179d78b4a8abc7a66f7658df0a06d4aa1f60475f3a017eab00aa21e61a07156519a1639a46bf5fb97e3fb07ea39ca885e9bb9145360c0",
"blockHeader" : {
"bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"difficulty" : "0x020000",
"extraData" : "0x",
"gasLimit" : "0x7fffffffffffffff",
"gasUsed" : "0x5222",
"hash" : "0x0b2e79025b5ef0fe98cab0b8864d72ec88f3023dac402134fa59a204c0ed953e",
"mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce" : "0x0000000000000000",
"number" : "0x01",
"parentHash" : "0x93fb8119bc644519b546c5385e5e24b7adf8184256cb034b10b2a5b41966af2e",
"receiptTrie" : "0x8ba76ce9b2d823eca3590058dc06297e8ecfa2944bdfa060a706027df832e1b1",
"stateRoot" : "0xe8b559bbcbbbced810edb9c0369acb9ffbeb90f438721cf92d31db8bfee2d776",
"timestamp" : "0x03e8",
"transactionsTrie" : "0x7bbad74a5b4f94ab79f9c09a33e7bc62ee345c027b337fdc7365ad8a7b4d4881",
"uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
"transactions" : [
{
"data" : "0x",
"gasLimit" : "0x061a80",
"gasPrice" : "0x01",
"nonce" : "0x00",
"to" : "0x1000000000000000000000000000000000000000",
"value" : "0x00",
"v" : "0x1c",
"r" : "0x436c8420915217ae867d043179d78b4a8abc7a66f7658df0a06d4aa1f60475f3",
"s" : "0x17eab00aa21e61a07156519a1639a46bf5fb97e3fb07ea39ca885e9bb9145360"
}
]
}
]
}
}
Loading