-
Notifications
You must be signed in to change notification settings - Fork 323
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #544 from ajsutton/extcodehash
Add EXTCODEHASH tests
- Loading branch information
Showing
20 changed files
with
2,237 additions
and
0 deletions.
There are no files selected for viewing
153 changes: 153 additions & 0 deletions
153
BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashDynamicArgument_d0g0v0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
{ | ||
"extCodeHashDynamicArgument_d0g0v0_Constantinople" : { | ||
"_info" : { | ||
"comment" : "EXTCODEHASH/EXTCODESIZE with address from a dynamic argument", | ||
"filledwith" : "testeth 1.5.0-alpha.6-1+commit.19ad7d95.dirty", | ||
"lllcversion" : "Version: 0.5.0-develop.2018.9.29+commit.c4b5101b.Darwin.appleclang", | ||
"source" : "src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashDynamicArgument_d0g0v0Filler.json", | ||
"sourceHash" : "2b3501948d0d054e451f4f63b04b7d2680e5373c18df7f08fd60e3ac428a260e" | ||
}, | ||
"blocks" : [ | ||
{ | ||
"blockHeader" : { | ||
"bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", | ||
"coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", | ||
"difficulty" : "0x020000", | ||
"extraData" : "", | ||
"gasLimit" : "0x0f4240", | ||
"gasUsed" : "0x35bb", | ||
"hash" : "0xfdaee0ad818a23d9dd1212d73bc10f6a3dee339d001e0746357877a54a785054", | ||
"mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"nonce" : "0x0000000000000000", | ||
"number" : "0x01", | ||
"parentHash" : "0x20e7f91c26522912c2950e32eda94f2529fa29e20bfcc482ce21ecdbf240360b", | ||
"receiptTrie" : "0x02c9e574397e4ee3c9f1dbfacbc17956e1079eff76c4899225f18959cb584aec", | ||
"stateRoot" : "0xf1ae8dee583b0b02b09b88b9fa2ec67909c7fc237d3e7b5f4719cf48b3741916", | ||
"timestamp" : "0x03e8", | ||
"transactionsTrie" : "0x373576d49c9c8788d6dbb2b3056508f7450f1bb90339b7461c54c124f89f54ce", | ||
"uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
}, | ||
"rlp" : "0xf9027ff901f7a020e7f91c26522912c2950e32eda94f2529fa29e20bfcc482ce21ecdbf240360ba01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa0f1ae8dee583b0b02b09b88b9fa2ec67909c7fc237d3e7b5f4719cf48b3741916a0373576d49c9c8788d6dbb2b3056508f7450f1bb90339b7461c54c124f89f54cea002c9e574397e4ee3c9f1dbfacbc17956e1079eff76c4899225f18959cb584aecb90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000001830f42408235bb8203e880a00000000000000000000000000000000000000000000000000000000000000000880000000000000000f882f880800183061a8094deadbeef0000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000000011ba03a3c69d4e01d1605a9efe4499613dbd9124b205207472bc9be7ca539530a0656a0717ac62ecea670d75968daeadc4a663621db6abb2e46b0e944fb12e72883a37dc0", | ||
"transactions" : [ | ||
{ | ||
"data" : "0x0000000000000000000000000000000000000000000000000000000000000001", | ||
"gasLimit" : "0x061a80", | ||
"gasPrice" : "0x01", | ||
"nonce" : "0x00", | ||
"r" : "0x3a3c69d4e01d1605a9efe4499613dbd9124b205207472bc9be7ca539530a0656", | ||
"s" : "0x717ac62ecea670d75968daeadc4a663621db6abb2e46b0e944fb12e72883a37d", | ||
"to" : "0xdeadbeef00000000000000000000000000000000", | ||
"v" : "0x1b", | ||
"value" : "0x01" | ||
} | ||
], | ||
"uncleHeaders" : [ | ||
] | ||
} | ||
], | ||
"genesisBlockHeader" : { | ||
"bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", | ||
"coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", | ||
"difficulty" : "0x020000", | ||
"extraData" : "0x42", | ||
"gasLimit" : "0x0f4240", | ||
"gasUsed" : "0x00", | ||
"hash" : "0x20e7f91c26522912c2950e32eda94f2529fa29e20bfcc482ce21ecdbf240360b", | ||
"mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", | ||
"nonce" : "0x0102030405060708", | ||
"number" : "0x00", | ||
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", | ||
"stateRoot" : "0xdfbd02fee291d961905b27a5b42838a7c946fb89514534217e6bb3344d2dad71", | ||
"timestamp" : "0x03b6", | ||
"transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", | ||
"uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
}, | ||
"genesisRLP" : "0xf901faf901f5a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa0dfbd02fee291d961905b27a5b42838a7c946fb89514534217e6bb3344d2dad71a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000080830f4240808203b642a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421880102030405060708c0c0", | ||
"lastblockhash" : "0xfdaee0ad818a23d9dd1212d73bc10f6a3dee339d001e0746357877a54a785054", | ||
"network" : "Constantinople", | ||
"postState" : { | ||
"0x0000000000000000000000000000000000000002" : { | ||
"balance" : "0x0a", | ||
"code" : "", | ||
"nonce" : "0x00", | ||
"storage" : { | ||
} | ||
}, | ||
"0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { | ||
"balance" : "0x1bc16d674ec835bb", | ||
"code" : "", | ||
"nonce" : "0x00", | ||
"storage" : { | ||
} | ||
}, | ||
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { | ||
"balance" : "0x0de0b6b3a763ca44", | ||
"code" : "", | ||
"nonce" : "0x01", | ||
"storage" : { | ||
} | ||
}, | ||
"0xdeadbeef00000000000000000000000000000000" : { | ||
"balance" : "0x0de0b6b3a7640001", | ||
"code" : "0x6000353f6000556000353b600155", | ||
"nonce" : "0x00", | ||
"storage" : { | ||
} | ||
}, | ||
"0xdeadbeef00000000000000000000000000000001" : { | ||
"balance" : "0x0de0b6b3a7640000", | ||
"code" : "0x1234", | ||
"nonce" : "0x00", | ||
"storage" : { | ||
} | ||
}, | ||
"0xdeadbeef00000000000000000000000000000002" : { | ||
"balance" : "0x0de0b6b3a7640000", | ||
"code" : "", | ||
"nonce" : "0x00", | ||
"storage" : { | ||
} | ||
} | ||
}, | ||
"pre" : { | ||
"0x0000000000000000000000000000000000000002" : { | ||
"balance" : "0x0a", | ||
"code" : "", | ||
"nonce" : "0x00", | ||
"storage" : { | ||
} | ||
}, | ||
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { | ||
"balance" : "0x0de0b6b3a7640000", | ||
"code" : "", | ||
"nonce" : "0x00", | ||
"storage" : { | ||
} | ||
}, | ||
"0xdeadbeef00000000000000000000000000000000" : { | ||
"balance" : "0x0de0b6b3a7640000", | ||
"code" : "0x6000353f6000556000353b600155", | ||
"nonce" : "0x00", | ||
"storage" : { | ||
"0x00" : "0xdeadbeef" | ||
} | ||
}, | ||
"0xdeadbeef00000000000000000000000000000001" : { | ||
"balance" : "0x0de0b6b3a7640000", | ||
"code" : "0x1234", | ||
"nonce" : "0x00", | ||
"storage" : { | ||
} | ||
}, | ||
"0xdeadbeef00000000000000000000000000000002" : { | ||
"balance" : "0x0de0b6b3a7640000", | ||
"code" : "", | ||
"nonce" : "0x00", | ||
"storage" : { | ||
} | ||
} | ||
}, | ||
"sealEngine" : "NoProof" | ||
} | ||
} |
154 changes: 154 additions & 0 deletions
154
BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashDynamicArgument_d1g0v0.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,154 @@ | ||
{ | ||
"extCodeHashDynamicArgument_d1g0v0_Constantinople" : { | ||
"_info" : { | ||
"comment" : "EXTCODEHASH/EXTCODESIZE with address from a dynamic argument", | ||
"filledwith" : "testeth 1.5.0-alpha.6-1+commit.19ad7d95.dirty", | ||
"lllcversion" : "Version: 0.5.0-develop.2018.9.29+commit.c4b5101b.Darwin.appleclang", | ||
"source" : "src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashDynamicArgument_d1g0v0Filler.json", | ||
"sourceHash" : "14416e4a04cee44f6d9000d185c2fb13f7fe6bac7ad40859a3beb1089fe6befa" | ||
}, | ||
"blocks" : [ | ||
{ | ||
"blockHeader" : { | ||
"bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", | ||
"coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", | ||
"difficulty" : "0x020000", | ||
"extraData" : "", | ||
"gasLimit" : "0x0f4240", | ||
"gasUsed" : "0x6b76", | ||
"hash" : "0xc12568eb2b45f72bdd3d3131d0e36f09dbf02b76fdb7f4007eed15a50e1afc85", | ||
"mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"nonce" : "0x0000000000000000", | ||
"number" : "0x01", | ||
"parentHash" : "0x20e7f91c26522912c2950e32eda94f2529fa29e20bfcc482ce21ecdbf240360b", | ||
"receiptTrie" : "0xdc151169796cc6230887a85a046c9731797fae492dda095cc4f1be22c0d32446", | ||
"stateRoot" : "0x581aba4bce6890c391da42dd3184d56325a9d061b39f0b3636f72cfdb43684dc", | ||
"timestamp" : "0x03e8", | ||
"transactionsTrie" : "0x54a919a1d8c0a5920cd7181275ffcefeeb062185cb20bbc30765415d1ad3ad87", | ||
"uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
}, | ||
"rlp" : "0xf9027ff901f7a020e7f91c26522912c2950e32eda94f2529fa29e20bfcc482ce21ecdbf240360ba01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa0581aba4bce6890c391da42dd3184d56325a9d061b39f0b3636f72cfdb43684dca054a919a1d8c0a5920cd7181275ffcefeeb062185cb20bbc30765415d1ad3ad87a0dc151169796cc6230887a85a046c9731797fae492dda095cc4f1be22c0d32446b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000001830f4240826b768203e880a00000000000000000000000000000000000000000000000000000000000000000880000000000000000f882f880800183061a8094deadbeef0000000000000000000000000000000001a000000000000000000000000000000000000000000000000000000000000000021ca00c6dddb73f5ea8903570be2a3329eeb64c69b8ba1772ebfb35cab492f3c8a47aa068d8debb4d74e91d71e26636481a1a2b67ac507692a8595c21b4e862588f7f92c0", | ||
"transactions" : [ | ||
{ | ||
"data" : "0x0000000000000000000000000000000000000000000000000000000000000002", | ||
"gasLimit" : "0x061a80", | ||
"gasPrice" : "0x01", | ||
"nonce" : "0x00", | ||
"r" : "0x0c6dddb73f5ea8903570be2a3329eeb64c69b8ba1772ebfb35cab492f3c8a47a", | ||
"s" : "0x68d8debb4d74e91d71e26636481a1a2b67ac507692a8595c21b4e862588f7f92", | ||
"to" : "0xdeadbeef00000000000000000000000000000000", | ||
"v" : "0x1c", | ||
"value" : "0x01" | ||
} | ||
], | ||
"uncleHeaders" : [ | ||
] | ||
} | ||
], | ||
"genesisBlockHeader" : { | ||
"bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", | ||
"coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", | ||
"difficulty" : "0x020000", | ||
"extraData" : "0x42", | ||
"gasLimit" : "0x0f4240", | ||
"gasUsed" : "0x00", | ||
"hash" : "0x20e7f91c26522912c2950e32eda94f2529fa29e20bfcc482ce21ecdbf240360b", | ||
"mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", | ||
"nonce" : "0x0102030405060708", | ||
"number" : "0x00", | ||
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", | ||
"receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", | ||
"stateRoot" : "0xdfbd02fee291d961905b27a5b42838a7c946fb89514534217e6bb3344d2dad71", | ||
"timestamp" : "0x03b6", | ||
"transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", | ||
"uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" | ||
}, | ||
"genesisRLP" : "0xf901faf901f5a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa0dfbd02fee291d961905b27a5b42838a7c946fb89514534217e6bb3344d2dad71a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000080830f4240808203b642a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421880102030405060708c0c0", | ||
"lastblockhash" : "0xc12568eb2b45f72bdd3d3131d0e36f09dbf02b76fdb7f4007eed15a50e1afc85", | ||
"network" : "Constantinople", | ||
"postState" : { | ||
"0x0000000000000000000000000000000000000002" : { | ||
"balance" : "0x0a", | ||
"code" : "", | ||
"nonce" : "0x00", | ||
"storage" : { | ||
} | ||
}, | ||
"0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { | ||
"balance" : "0x1bc16d674ec86b76", | ||
"code" : "", | ||
"nonce" : "0x00", | ||
"storage" : { | ||
} | ||
}, | ||
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { | ||
"balance" : "0x0de0b6b3a7639489", | ||
"code" : "", | ||
"nonce" : "0x01", | ||
"storage" : { | ||
} | ||
}, | ||
"0xdeadbeef00000000000000000000000000000000" : { | ||
"balance" : "0x0de0b6b3a7640001", | ||
"code" : "0x6000353f6000556000353b600155", | ||
"nonce" : "0x00", | ||
"storage" : { | ||
"0x00" : "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470" | ||
} | ||
}, | ||
"0xdeadbeef00000000000000000000000000000001" : { | ||
"balance" : "0x0de0b6b3a7640000", | ||
"code" : "0x1234", | ||
"nonce" : "0x00", | ||
"storage" : { | ||
} | ||
}, | ||
"0xdeadbeef00000000000000000000000000000002" : { | ||
"balance" : "0x0de0b6b3a7640000", | ||
"code" : "", | ||
"nonce" : "0x00", | ||
"storage" : { | ||
} | ||
} | ||
}, | ||
"pre" : { | ||
"0x0000000000000000000000000000000000000002" : { | ||
"balance" : "0x0a", | ||
"code" : "", | ||
"nonce" : "0x00", | ||
"storage" : { | ||
} | ||
}, | ||
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { | ||
"balance" : "0x0de0b6b3a7640000", | ||
"code" : "", | ||
"nonce" : "0x00", | ||
"storage" : { | ||
} | ||
}, | ||
"0xdeadbeef00000000000000000000000000000000" : { | ||
"balance" : "0x0de0b6b3a7640000", | ||
"code" : "0x6000353f6000556000353b600155", | ||
"nonce" : "0x00", | ||
"storage" : { | ||
"0x00" : "0xdeadbeef" | ||
} | ||
}, | ||
"0xdeadbeef00000000000000000000000000000001" : { | ||
"balance" : "0x0de0b6b3a7640000", | ||
"code" : "0x1234", | ||
"nonce" : "0x00", | ||
"storage" : { | ||
} | ||
}, | ||
"0xdeadbeef00000000000000000000000000000002" : { | ||
"balance" : "0x0de0b6b3a7640000", | ||
"code" : "", | ||
"nonce" : "0x00", | ||
"storage" : { | ||
} | ||
} | ||
}, | ||
"sealEngine" : "NoProof" | ||
} | ||
} |
Oops, something went wrong.