diff options
author | Dimitry <dimitry@ethereum.org> | 2018-11-21 22:48:55 +0800 |
---|---|---|
committer | Dimitry <dimitry@ethereum.org> | 2018-11-21 22:48:55 +0800 |
commit | ad7454609b6f94aee6abd19894e2bb0a39930178 (patch) | |
tree | e25649f77b344387e2ed1bf80df95ef3361f46e8 | |
parent | bafa2f734fb796a90b2d786a041c0ff9ee71617e (diff) | |
download | tangerine-tests-moreextcode.tar tangerine-tests-moreextcode.tar.gz tangerine-tests-moreextcode.tar.bz2 tangerine-tests-moreextcode.tar.lz tangerine-tests-moreextcode.tar.xz tangerine-tests-moreextcode.tar.zst tangerine-tests-moreextcode.zip |
delete account and check its extcodehash in blockchainmoreextcode
4 files changed, 581 insertions, 0 deletions
diff --git a/BlockchainTests/bcStateTests/extCodeHashOfDeletedAccount.json b/BlockchainTests/bcStateTests/extCodeHashOfDeletedAccount.json new file mode 100644 index 000000000..3db9e9054 --- /dev/null +++ b/BlockchainTests/bcStateTests/extCodeHashOfDeletedAccount.json @@ -0,0 +1,177 @@ +{ + "extCodeHashOfDeletedAccount_Constantinople" : { + "_info" : { + "comment" : "5) a blockchain test with block having 2/3 transactions. account a is in the state with the code before the first transaction. 1st transaction (sstore 1 codehash(a)) 2nd transaction suicide a (could be merged with 1st transaction) 3d transaction (sstore 2 codehash(a)) check by expect section sstore value of 1 and 2.", + "filledwith" : "testeth 1.5.0-alpha.6-49+commit.4897b8bb.dirty", + "lllcversion" : "Version: 0.5.0-develop.2018.11.9+commit.9709dfe0.Linux.g++", + "source" : "src/BlockchainTestsFiller/bcStateTests/extCodeHashOfDeletedAccountFiller.json", + "sourceHash" : "0a5bfc9ee2d4fe2f716753ae212441dee0f45fdcd20f174abe639ade9288278f" + }, + "blocks" : [ + { + "blockHeader" : { + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x8888f1f195afa192cfee860698584c030f4c9db1", + "difficulty" : "0x020000", + "extraData" : "", + "gasLimit" : "0x2fefba", + "gasUsed" : "0x020b72", + "hash" : "0x6ff71291353917b0f7083a4fee4b2e9865c4e8c6156650ab699adfbd4a0f3fbb", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x0000000000000000", + "number" : "0x01", + "parentHash" : "0x37e75c4896cabfd4259bed202f5aeca2a28bbd48414f49bfd91ce9d826cfc3ab", + "receiptTrie" : "0xae3618707b0d0f4a04469dda4e5046f79e30f64ad216242ab54fa4f5c481ba32", + "stateRoot" : "0x4e5881fe526200759ce7f784ef7f73813b5dc0ee72421dc4ca5dc758e63209eb", + "timestamp" : "0x5bf56bb3", + "transactionsTrie" : "0xe6cfeb14af7b3a91b1446f7e1a38c32998d2225b23b41d0a30d89980bba67e42", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "rlp" : "0xf90327f901faa037e75c4896cabfd4259bed202f5aeca2a28bbd48414f49bfd91ce9d826cfc3aba01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347948888f1f195afa192cfee860698584c030f4c9db1a04e5881fe526200759ce7f784ef7f73813b5dc0ee72421dc4ca5dc758e63209eba0e6cfeb14af7b3a91b1446f7e1a38c32998d2225b23b41d0a30d89980bba67e42a0ae3618707b0d0f4a04469dda4e5046f79e30f64ad216242ab54fa4f5c481ba32b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000001832fefba83020b72845bf56bb380a00000000000000000000000000000000000000000000000000000000000000000880000000000000000f90126f860800183061a8094100000000000000000000000000000000000000080801ca0436c8420915217ae867d043179d78b4a8abc7a66f7658df0a06d4aa1f60475f3a017eab00aa21e61a07156519a1639a46bf5fb97e3fb07ea39ca885e9bb9145360f860010183061a8094110000000000000000000000000000000000000080801ba0211f2484b4229df13ba874c8d0daea7aa63f7cfb58bcaeac30da082ad867a7aaa03351adf0ceb867bfa88c150724693e01af84ec32a2bf0f29403aa0bb97f4c630f860020183061a8094120000000000000000000000000000000000000080801ca088b24eaadbdec2fdf405a4017f5e0d7d8810d4c74a34843539f2be6cc1a989fca079ad8ded0eeefa6732038ceb50e3a987a5ba9c1ea12eb3e6f78651858f1fd2a1c0", + "transactions" : [ + { + "data" : "0x", + "gasLimit" : "0x061a80", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0x436c8420915217ae867d043179d78b4a8abc7a66f7658df0a06d4aa1f60475f3", + "s" : "0x17eab00aa21e61a07156519a1639a46bf5fb97e3fb07ea39ca885e9bb9145360", + "to" : "0x1000000000000000000000000000000000000000", + "v" : "0x1c", + "value" : "0x00" + }, + { + "data" : "0x", + "gasLimit" : "0x061a80", + "gasPrice" : "0x01", + "nonce" : "0x01", + "r" : "0x211f2484b4229df13ba874c8d0daea7aa63f7cfb58bcaeac30da082ad867a7aa", + "s" : "0x3351adf0ceb867bfa88c150724693e01af84ec32a2bf0f29403aa0bb97f4c630", + "to" : "0x1100000000000000000000000000000000000000", + "v" : "0x1b", + "value" : "0x00" + }, + { + "data" : "0x", + "gasLimit" : "0x061a80", + "gasPrice" : "0x01", + "nonce" : "0x02", + "r" : "0x88b24eaadbdec2fdf405a4017f5e0d7d8810d4c74a34843539f2be6cc1a989fc", + "s" : "0x79ad8ded0eeefa6732038ceb50e3a987a5ba9c1ea12eb3e6f78651858f1fd2a1", + "to" : "0x1200000000000000000000000000000000000000", + "v" : "0x1c", + "value" : "0x00" + } + ], + "uncleHeaders" : [ + ] + } + ], + "genesisBlockHeader" : { + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x8888f1f195afa192cfee860698584c030f4c9db1", + "difficulty" : "0x020000", + "extraData" : "0x42", + "gasLimit" : "0x2fefd8", + "gasUsed" : "0x00", + "hash" : "0x37e75c4896cabfd4259bed202f5aeca2a28bbd48414f49bfd91ce9d826cfc3ab", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "number" : "0x00", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0xf7abdfce594dbebce627450f5b585f174b8f954fbf530c3e0367ee04eac85313", + "timestamp" : "0x54c98c81", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "genesisRLP" : "0xf901fcf901f7a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347948888f1f195afa192cfee860698584c030f4c9db1a0f7abdfce594dbebce627450f5b585f174b8f954fbf530c3e0367ee04eac85313a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000080832fefd8808454c98c8142a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421880102030405060708c0c0", + "lastblockhash" : "0x6ff71291353917b0f7083a4fee4b2e9865c4e8c6156650ab699adfbd4a0f3fbb", + "network" : "Constantinople", + "postState" : { + "0x0000000000000000000000000000000000000001" : { + "balance" : "0x03e8", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x03e8", + "code" : "0x7320000000000000000000000000000000000000003f6000557320000000000000000000000000000000000000003b6001556020600060007320000000000000000000000000000000000000003c600051600255", + "nonce" : "0x00", + "storage" : { + "0x00" : "0x4332e7449d179f5dceba0d414291d661898a5770bf47f83cab418bc9c8d1e304", + "0x01" : "0x03", + "0x02" : "0x6001ff0000000000000000000000000000000000000000000000000000000000" + } + }, + "0x1100000000000000000000000000000000000000" : { + "balance" : "0x03e8", + "code" : "0x60006000600060006000732000000000000000000000000000000000000000620186a0f1", + "nonce" : "0x00", + "storage" : { + } + }, + "0x1200000000000000000000000000000000000000" : { + "balance" : "0x03e8", + "code" : "0x7320000000000000000000000000000000000000003f6000557320000000000000000000000000000000000000003b6001556020600060007320000000000000000000000000000000000000003c600051600255", + "nonce" : "0x00", + "storage" : { + } + }, + "0x8888f1f195afa192cfee860698584c030f4c9db1" : { + "balance" : "0x1bc16d674eca0b72", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x016345785d87f48e", + "code" : "", + "nonce" : "0x03", + "storage" : { + } + } + }, + "pre" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x03e8", + "code" : "0x7320000000000000000000000000000000000000003f6000557320000000000000000000000000000000000000003b6001556020600060007320000000000000000000000000000000000000003c600051600255", + "nonce" : "0x00", + "storage" : { + } + }, + "0x1100000000000000000000000000000000000000" : { + "balance" : "0x03e8", + "code" : "0x60006000600060006000732000000000000000000000000000000000000000620186a0f1", + "nonce" : "0x00", + "storage" : { + } + }, + "0x1200000000000000000000000000000000000000" : { + "balance" : "0x03e8", + "code" : "0x7320000000000000000000000000000000000000003f6000557320000000000000000000000000000000000000003b6001556020600060007320000000000000000000000000000000000000003c600051600255", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2000000000000000000000000000000000000000" : { + "balance" : "0x03e8", + "code" : "0x6001ff", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x016345785d8a0000", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +}
\ No newline at end of file diff --git a/BlockchainTests/bcStateTests/extCodeHashOfDeletedAccountDynamic.json b/BlockchainTests/bcStateTests/extCodeHashOfDeletedAccountDynamic.json new file mode 100644 index 000000000..8e84dd899 --- /dev/null +++ b/BlockchainTests/bcStateTests/extCodeHashOfDeletedAccountDynamic.json @@ -0,0 +1,172 @@ +{ + "extCodeHashOfDeletedAccountDynamic_Constantinople" : { + "_info" : { + "comment" : "5) a blockchain test with block having 2/3 transactions. account a is in the state with the code before the first transaction. 1st transaction (sstore 1 codehash(a)) 2nd transaction suicide a (could be merged with 1st transaction) 3d transaction (sstore 2 codehash(a)) check by expect section sstore value of 1 and 2.", + "filledwith" : "testeth 1.5.0-alpha.6-49+commit.4897b8bb.dirty", + "lllcversion" : "Version: 0.5.0-develop.2018.11.9+commit.9709dfe0.Linux.g++", + "source" : "src/BlockchainTestsFiller/bcStateTests/extCodeHashOfDeletedAccountDynamicFiller.json", + "sourceHash" : "64dd335d28bf628f82226ec0b033f5aef1153d6e07d04c1e01124e998d793667" + }, + "blocks" : [ + { + "blockHeader" : { + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x8888f1f195afa192cfee860698584c030f4c9db1", + "difficulty" : "0x020000", + "extraData" : "", + "gasLimit" : "0x2fefba", + "gasUsed" : "0x032c08", + "hash" : "0x0ff9e70441b40f002732831ef9e577f47968798eba0e28f43bbb96581981b5dd", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x0000000000000000", + "number" : "0x01", + "parentHash" : "0xc371f0a9943d98878af1f2246160b198efc4d6caf7b05dd157df4ead317c375a", + "receiptTrie" : "0x6a906f9894eea0029502d2ab3b7bd439e28d4a16adec80060bb99b3afcb57018", + "stateRoot" : "0xb25f26b0cd77609eb2206c3d8edc4128bef0d8664f79ad85ba3af56651db6e12", + "timestamp" : "0x5bf5701c", + "transactionsTrie" : "0xe6cfeb14af7b3a91b1446f7e1a38c32998d2225b23b41d0a30d89980bba67e42", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "rlp" : "0xf90327f901faa0c371f0a9943d98878af1f2246160b198efc4d6caf7b05dd157df4ead317c375aa01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347948888f1f195afa192cfee860698584c030f4c9db1a0b25f26b0cd77609eb2206c3d8edc4128bef0d8664f79ad85ba3af56651db6e12a0e6cfeb14af7b3a91b1446f7e1a38c32998d2225b23b41d0a30d89980bba67e42a06a906f9894eea0029502d2ab3b7bd439e28d4a16adec80060bb99b3afcb57018b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000001832fefba83032c08845bf5701c80a00000000000000000000000000000000000000000000000000000000000000000880000000000000000f90126f860800183061a8094100000000000000000000000000000000000000080801ca0436c8420915217ae867d043179d78b4a8abc7a66f7658df0a06d4aa1f60475f3a017eab00aa21e61a07156519a1639a46bf5fb97e3fb07ea39ca885e9bb9145360f860010183061a8094110000000000000000000000000000000000000080801ba0211f2484b4229df13ba874c8d0daea7aa63f7cfb58bcaeac30da082ad867a7aaa03351adf0ceb867bfa88c150724693e01af84ec32a2bf0f29403aa0bb97f4c630f860020183061a8094120000000000000000000000000000000000000080801ca088b24eaadbdec2fdf405a4017f5e0d7d8810d4c74a34843539f2be6cc1a989fca079ad8ded0eeefa6732038ceb50e3a987a5ba9c1ea12eb3e6f78651858f1fd2a1c0", + "transactions" : [ + { + "data" : "0x", + "gasLimit" : "0x061a80", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0x436c8420915217ae867d043179d78b4a8abc7a66f7658df0a06d4aa1f60475f3", + "s" : "0x17eab00aa21e61a07156519a1639a46bf5fb97e3fb07ea39ca885e9bb9145360", + "to" : "0x1000000000000000000000000000000000000000", + "v" : "0x1c", + "value" : "0x00" + }, + { + "data" : "0x", + "gasLimit" : "0x061a80", + "gasPrice" : "0x01", + "nonce" : "0x01", + "r" : "0x211f2484b4229df13ba874c8d0daea7aa63f7cfb58bcaeac30da082ad867a7aa", + "s" : "0x3351adf0ceb867bfa88c150724693e01af84ec32a2bf0f29403aa0bb97f4c630", + "to" : "0x1100000000000000000000000000000000000000", + "v" : "0x1b", + "value" : "0x00" + }, + { + "data" : "0x", + "gasLimit" : "0x061a80", + "gasPrice" : "0x01", + "nonce" : "0x02", + "r" : "0x88b24eaadbdec2fdf405a4017f5e0d7d8810d4c74a34843539f2be6cc1a989fc", + "s" : "0x79ad8ded0eeefa6732038ceb50e3a987a5ba9c1ea12eb3e6f78651858f1fd2a1", + "to" : "0x1200000000000000000000000000000000000000", + "v" : "0x1c", + "value" : "0x00" + } + ], + "uncleHeaders" : [ + ] + } + ], + "genesisBlockHeader" : { + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x8888f1f195afa192cfee860698584c030f4c9db1", + "difficulty" : "0x020000", + "extraData" : "0x42", + "gasLimit" : "0x2fefd8", + "gasUsed" : "0x00", + "hash" : "0xc371f0a9943d98878af1f2246160b198efc4d6caf7b05dd157df4ead317c375a", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "number" : "0x00", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0xd0ea397f165c098234f1656558101e8f6950dc24b6f7348c7a3a3dd5e089261d", + "timestamp" : "0x54c98c81", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "genesisRLP" : "0xf901fcf901f7a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347948888f1f195afa192cfee860698584c030f4c9db1a0d0ea397f165c098234f1656558101e8f6950dc24b6f7348c7a3a3dd5e089261da056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000080832fefd8808454c98c8142a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421880102030405060708c0c0", + "lastblockhash" : "0x0ff9e70441b40f002732831ef9e577f47968798eba0e28f43bbb96581981b5dd", + "network" : "Constantinople", + "postState" : { + "0x0000000000000000000000000000000000000001" : { + "balance" : "0x01", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x03e7", + "code" : "0x6010600f80603260803960806001f56005556005543f6000556005543b6001556020600060006005543c60005160025500fe600380600c6000396000f3fe6001ff", + "nonce" : "0x01", + "storage" : { + "0x00" : "0x4332e7449d179f5dceba0d414291d661898a5770bf47f83cab418bc9c8d1e304", + "0x01" : "0x03", + "0x02" : "0x6001ff0000000000000000000000000000000000000000000000000000000000", + "0x05" : "0x4e2ac1add07ea5ce68e1e4b0916b4cf22f4d6e84" + } + }, + "0x1100000000000000000000000000000000000000" : { + "balance" : "0x03e8", + "code" : "0x60006000600060006000734e2ac1add07ea5ce68e1e4b0916b4cf22f4d6e84620186a0f1", + "nonce" : "0x00", + "storage" : { + } + }, + "0x1200000000000000000000000000000000000000" : { + "balance" : "0x03e8", + "code" : "0x734e2ac1add07ea5ce68e1e4b0916b4cf22f4d6e846005556005543f6000556005543b6001556020600060006005543c60005160025500", + "nonce" : "0x00", + "storage" : { + "0x05" : "0x4e2ac1add07ea5ce68e1e4b0916b4cf22f4d6e84" + } + }, + "0x8888f1f195afa192cfee860698584c030f4c9db1" : { + "balance" : "0x1bc16d674ecb2c08", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x016345785d86d3f8", + "code" : "", + "nonce" : "0x03", + "storage" : { + } + } + }, + "pre" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x03e8", + "code" : "0x6010600f80603260803960806001f56005556005543f6000556005543b6001556020600060006005543c60005160025500fe600380600c6000396000f3fe6001ff", + "nonce" : "0x00", + "storage" : { + } + }, + "0x1100000000000000000000000000000000000000" : { + "balance" : "0x03e8", + "code" : "0x60006000600060006000734e2ac1add07ea5ce68e1e4b0916b4cf22f4d6e84620186a0f1", + "nonce" : "0x00", + "storage" : { + } + }, + "0x1200000000000000000000000000000000000000" : { + "balance" : "0x03e8", + "code" : "0x734e2ac1add07ea5ce68e1e4b0916b4cf22f4d6e846005556005543f6000556005543b6001556020600060006005543c60005160025500", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x016345785d8a0000", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +}
\ No newline at end of file diff --git a/src/BlockchainTestsFiller/bcStateTests/extCodeHashOfDeletedAccountDynamicFiller.json b/src/BlockchainTestsFiller/bcStateTests/extCodeHashOfDeletedAccountDynamicFiller.json new file mode 100644 index 000000000..afc49be6d --- /dev/null +++ b/src/BlockchainTestsFiller/bcStateTests/extCodeHashOfDeletedAccountDynamicFiller.json @@ -0,0 +1,114 @@ +{ + "extCodeHashOfDeletedAccountDynamic" : { + "_info" : { + "comment" : "5) a blockchain test with block having 2/3 transactions. account a is in the state with the code before the first transaction. 1st transaction (sstore 1 codehash(a)) 2nd transaction suicide a (could be merged with 1st transaction) 3d transaction (sstore 2 codehash(a)) check by expect section sstore value of 1 and 2." + }, + "genesisBlockHeader" : { + "bloom" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x8888f1f195afa192cfee860698584c030f4c9db1", + "difficulty" : "0x020000", + "extraData" : "0x42", + "gasLimit" : "3141592", + "gasUsed" : "0", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "number" : "0", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0xf99eb1626cfa6db435c0836235942d7ccaa935f1ae247d3f1c21e495685f903a", + "timestamp" : "0x54c98c81", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "sealEngine" : "NoProof", + "expect" : [ + { + "network" : [">=Constantinople"], + "result" : { + "0000000000000000000000000000000000000001" : { + "balance" : "1" + }, + "1000000000000000000000000000000000000000" : { + "storage" : { + "0x00" : "0x4332e7449d179f5dceba0d414291d661898a5770bf47f83cab418bc9c8d1e304", + "0x01" : "0x03", + "0X02" : "0x6001ff0000000000000000000000000000000000000000000000000000000000", + "0x05" : "0x4e2ac1add07ea5ce68e1e4b0916b4cf22f4d6e84" + } + }, + "1200000000000000000000000000000000000000" : { + "storage" : { + "0x00" : "0x00", + "0x01" : "0x00", + "0X05" : "0x4e2ac1add07ea5ce68e1e4b0916b4cf22f4d6e84" + } + }, + "0x4e2ac1add07ea5ce68e1e4b0916b4cf22f4d6e84" : { + "shouldnotexist" : "1" + } + } + } + ], + "pre" : { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "100000000000000000", + "nonce" : "0", + "code" : "", + "storage": {} + }, + "1000000000000000000000000000000000000000" : { + "balance" : "1000", + "nonce" : "0", + "code" : "{ (SSTORE 5 (CREATE2 1 128 (lll { (RETURN 0 (lll { (SELFDESTRUCT 1) } 0)) } 128) 0x10)) [[0]] (EXTCODEHASH (SLOAD 5)) [[1]] (EXTCODESIZE (SLOAD 5)) (EXTCODECOPY (SLOAD 5) 0 0 32) [[2]] (MLOAD 0) (STOP) }", + "storage": {} + }, + "1100000000000000000000000000000000000000" : { + "balance" : "1000", + "nonce" : "0", + "code" : "{ (CALL 100000 0x4e2ac1add07ea5ce68e1e4b0916b4cf22f4d6e84 0 0 0 0 0) }", + "storage": {} + }, + "1200000000000000000000000000000000000000" : { + "balance" : "1000", + "nonce" : "0", + "code" : "{ (SSTORE 5 0x4e2ac1add07ea5ce68e1e4b0916b4cf22f4d6e84) [[0]] (EXTCODEHASH (SLOAD 5)) [[1]] (EXTCODESIZE (SLOAD 5)) (EXTCODECOPY (SLOAD 5) 0 0 32) [[2]] (MLOAD 0) (STOP) }", + "storage": {} + } + }, + "blocks" : [ + { + "transactions" : [ + { + "data" : "", + "gasLimit" : "400000", + "gasPrice" : "1", + "nonce" : "0", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "1000000000000000000000000000000000000000", + "value" : "0" + }, + { + "data" : "", + "gasLimit" : "400000", + "gasPrice" : "1", + "nonce" : "1", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "1100000000000000000000000000000000000000", + "value" : "0" + }, + { + "data" : "", + "gasLimit" : "400000", + "gasPrice" : "1", + "nonce" : "2", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "1200000000000000000000000000000000000000", + "value" : "0" + } + ], + "uncleHeaders" : [ + ] + } + ] + } +} diff --git a/src/BlockchainTestsFiller/bcStateTests/extCodeHashOfDeletedAccountFiller.json b/src/BlockchainTestsFiller/bcStateTests/extCodeHashOfDeletedAccountFiller.json new file mode 100644 index 000000000..9144cf948 --- /dev/null +++ b/src/BlockchainTestsFiller/bcStateTests/extCodeHashOfDeletedAccountFiller.json @@ -0,0 +1,118 @@ +{ + "extCodeHashOfDeletedAccount" : { + "_info" : { + "comment" : "5) a blockchain test with block having 2/3 transactions. account a is in the state with the code before the first transaction. 1st transaction (sstore 1 codehash(a)) 2nd transaction suicide a (could be merged with 1st transaction) 3d transaction (sstore 2 codehash(a)) check by expect section sstore value of 1 and 2." + }, + "genesisBlockHeader" : { + "bloom" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x8888f1f195afa192cfee860698584c030f4c9db1", + "difficulty" : "0x020000", + "extraData" : "0x42", + "gasLimit" : "3141592", + "gasUsed" : "0", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "number" : "0", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0xf99eb1626cfa6db435c0836235942d7ccaa935f1ae247d3f1c21e495685f903a", + "timestamp" : "0x54c98c81", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "sealEngine" : "NoProof", + "expect" : [ + { + "network" : [">=Constantinople"], + "result" : { + "0000000000000000000000000000000000000001" : { + "balance" : "1000" + }, + "1000000000000000000000000000000000000000" : { + "storage" : { + "0x00" : "0x4332e7449d179f5dceba0d414291d661898a5770bf47f83cab418bc9c8d1e304", + "0x01" : "0x03", + "0x02" : "0x6001ff0000000000000000000000000000000000000000000000000000000000" + } + }, + "1200000000000000000000000000000000000000" : { + "storage" : { + "0x00" : "0x00", + "0x01" : "0x00" + } + }, + "2000000000000000000000000000000000000000" : { + "shouldnotexist" : "1" + } + } + } + ], + "pre" : { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "100000000000000000", + "nonce" : "0", + "code" : "", + "storage": {} + }, + "1000000000000000000000000000000000000000" : { + "balance" : "1000", + "nonce" : "0", + "code" : "{ [[0]] (EXTCODEHASH 0x2000000000000000000000000000000000000000) [[1]] (EXTCODESIZE 0x2000000000000000000000000000000000000000) (EXTCODECOPY 0x2000000000000000000000000000000000000000 0 0 32) [[2]] (MLOAD 0) }", + "storage": {} + }, + "1100000000000000000000000000000000000000" : { + "balance" : "1000", + "nonce" : "0", + "code" : "{ (CALL 100000 0x2000000000000000000000000000000000000000 0 0 0 0 0) }", + "storage": {} + }, + "1200000000000000000000000000000000000000" : { + "balance" : "1000", + "nonce" : "0", + "code" : "{ [[0]] (EXTCODEHASH 0x2000000000000000000000000000000000000000) [[1]] (EXTCODESIZE 0x2000000000000000000000000000000000000000) (EXTCODECOPY 0x2000000000000000000000000000000000000000 0 0 32) [[2]] (MLOAD 0) }", + "storage": {} + }, + "2000000000000000000000000000000000000000" : { + "balance" : "1000", + "nonce" : "0", + "code" : "{ (SELFDESTRUCT 1) }", + "storage": {} + } + }, + "blocks" : [ + { + "transactions" : [ + { + "data" : "", + "gasLimit" : "400000", + "gasPrice" : "1", + "nonce" : "0", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "1000000000000000000000000000000000000000", + "value" : "0" + }, + { + "data" : "", + "gasLimit" : "400000", + "gasPrice" : "1", + "nonce" : "1", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "1100000000000000000000000000000000000000", + "value" : "0" + }, + { + "data" : "", + "gasLimit" : "400000", + "gasPrice" : "1", + "nonce" : "2", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "1200000000000000000000000000000000000000", + "value" : "0" + } + ], + "uncleHeaders" : [ + ] + } + ] + } +} |