aboutsummaryrefslogtreecommitdiffstats
path: root/BlockchainTests/bcStateTests/suicideThenCheckBalance.json
diff options
context:
space:
mode:
Diffstat (limited to 'BlockchainTests/bcStateTests/suicideThenCheckBalance.json')
-rw-r--r--BlockchainTests/bcStateTests/suicideThenCheckBalance.json284
1 files changed, 284 insertions, 0 deletions
diff --git a/BlockchainTests/bcStateTests/suicideThenCheckBalance.json b/BlockchainTests/bcStateTests/suicideThenCheckBalance.json
new file mode 100644
index 000000000..32e6bf41c
--- /dev/null
+++ b/BlockchainTests/bcStateTests/suicideThenCheckBalance.json
@@ -0,0 +1,284 @@
+{
+ "suicideThenCheckBalance_Constantinople" : {
+ "_info" : {
+ "comment" : "[2:22:42] Vitalik Buterin: another one is: (i) self-destruct contract C, (ii) in the next transaction, send 1 wei to C, (iii) verify that C's balance is 1 wei. [2:23:01] Vitalik Buterin: the reason this is important now is that with EIP98, clients will be switching to not 'committing' their caches to the trie at the end of every tx. [2:23:18] Vitalik Buterin: and this means that selfdestruct has to be handled more carefully than before. [2:23:49] Vitalik Buterin: pyethereum screwed it up and it had to get fixed, though pyethereum's bug had to do with pre-spurious dragon 'existence' so it may not be relevant now.",
+ "filledwith" : "testeth 1.5.0.dev2+commit.c4d901f1.dirty",
+ "lllcversion" : "Version: 0.4.25-develop.2018.8.9+commit.63d071d6.mod.Linux.g++",
+ "source" : "src/BlockchainTestsFiller/bcStateTests/suicideThenCheckBalanceFiller.json",
+ "sourceHash" : "28cfa7559250e7b3021d5879d78ad8c18746fcbbd187e76b3348fca46ba0459b"
+ },
+ "blocks" : [
+ {
+ "blockHeader" : {
+ "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "coinbase" : "0x8888f1f195afa192cfee860698584c030f4c9db1",
+ "difficulty" : "0x020000",
+ "extraData" : "",
+ "gasLimit" : "0x2fefd8",
+ "gasUsed" : "0x01d806",
+ "hash" : "0xf3463e5a62c4bc195768804770ee488f1e8cf14187bd8450ec8c7e04d45a2024",
+ "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "nonce" : "0x0000000000000000",
+ "number" : "0x01",
+ "parentHash" : "0xdd5444acad93007dd583c16f113153e84b2937e5bbe9cbc91e9ed9257cb7bc4f",
+ "receiptTrie" : "0x16c3d591538693bee5dadbe696a7ab3071a76b32acbf8b20594a149f309cc3c8",
+ "stateRoot" : "0xcbeccbd132e9558a310031e9ac54236931e1b161f8c8661da862cf725f00c001",
+ "timestamp" : "0x5b843623",
+ "transactionsTrie" : "0x7af29f674f9538b253f2bb499951adc03426d1ea468da7e00f3487702dcda1ec",
+ "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ "rlp" : "0xf902c4f901faa0dd5444acad93007dd583c16f113153e84b2937e5bbe9cbc91e9ed9257cb7bc4fa01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347948888f1f195afa192cfee860698584c030f4c9db1a0cbeccbd132e9558a310031e9ac54236931e1b161f8c8661da862cf725f00c001a07af29f674f9538b253f2bb499951adc03426d1ea468da7e00f3487702dcda1eca016c3d591538693bee5dadbe696a7ab3071a76b32acbf8b20594a149f309cc3c8b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000001832fefd88301d806845b84362380a00000000000000000000000000000000000000000000000000000000000000000880000000000000000f8c4f860800183061a8094e3476106159f87477ad639e3ddcbb6b240efe45980801ba06ec80a292680500270c0c41910099f740582ed4c969ae73130afb627a0904769a03d240fbac3547335d89c90c047a0064640dec7e4be36d70531900ec504842a18f860010183061a8094a3476106159f87477ad639e3ddcbb6b240efe45980801ca06b0037dab52c023d4705c500605aad0f0978a5242a9b8c69725da59360c77278a04504a5706bcea8684a9b03117b883e064d9d61bb2571e08583697a743815e5a7c0",
+ "transactions" : [
+ {
+ "data" : "0x",
+ "gasLimit" : "0x061a80",
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "r" : "0x6ec80a292680500270c0c41910099f740582ed4c969ae73130afb627a0904769",
+ "s" : "0x3d240fbac3547335d89c90c047a0064640dec7e4be36d70531900ec504842a18",
+ "to" : "0xe3476106159f87477ad639e3ddcbb6b240efe459",
+ "v" : "0x1b",
+ "value" : "0x00"
+ },
+ {
+ "data" : "0x",
+ "gasLimit" : "0x061a80",
+ "gasPrice" : "0x01",
+ "nonce" : "0x01",
+ "r" : "0x6b0037dab52c023d4705c500605aad0f0978a5242a9b8c69725da59360c77278",
+ "s" : "0x4504a5706bcea8684a9b03117b883e064d9d61bb2571e08583697a743815e5a7",
+ "to" : "0xa3476106159f87477ad639e3ddcbb6b240efe459",
+ "v" : "0x1c",
+ "value" : "0x00"
+ }
+ ],
+ "uncleHeaders" : [
+ ]
+ }
+ ],
+ "genesisBlockHeader" : {
+ "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "coinbase" : "0x8888f1f195afa192cfee860698584c030f4c9db1",
+ "difficulty" : "0x020000",
+ "extraData" : "0x42",
+ "gasLimit" : "0x2fefd8",
+ "gasUsed" : "0x00",
+ "hash" : "0xdd5444acad93007dd583c16f113153e84b2937e5bbe9cbc91e9ed9257cb7bc4f",
+ "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "nonce" : "0x0102030405060708",
+ "number" : "0x00",
+ "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "stateRoot" : "0x5cb6e49334985c0e218ea39019473195ff7146809c306b0dcbe3c851a7f02c65",
+ "timestamp" : "0x54c98c81",
+ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ "genesisRLP" : "0xf901fcf901f7a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347948888f1f195afa192cfee860698584c030f4c9db1a05cb6e49334985c0e218ea39019473195ff7146809c306b0dcbe3c851a7f02c65a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000080832fefd8808454c98c8142a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421880102030405060708c0c0",
+ "lastblockhash" : "0xf3463e5a62c4bc195768804770ee488f1e8cf14187bd8450ec8c7e04d45a2024",
+ "network" : "Constantinople",
+ "postState" : {
+ "0x0000000000000000000000000000000000000001" : {
+ "balance" : "0x03e8",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0x8888f1f195afa192cfee860698584c030f4c9db1" : {
+ "balance" : "0x29a2241af62dd806",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xa3476106159f87477ad639e3ddcbb6b240efe459" : {
+ "balance" : "0x03e7",
+ "code" : "0x6000600060006000600173e3476106159f87477ad639e3ddcbb6b240efe4596101f4f15073e3476106159f87477ad639e3ddcbb6b240efe45931600155",
+ "nonce" : "0x00",
+ "storage" : {
+ "0x01" : "0x01"
+ }
+ },
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x02540a0bfa",
+ "code" : "",
+ "nonce" : "0x02",
+ "storage" : {
+ }
+ },
+ "0xe3476106159f87477ad639e3ddcbb6b240efe459" : {
+ "balance" : "0x01",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "pre" : {
+ "0xa3476106159f87477ad639e3ddcbb6b240efe459" : {
+ "balance" : "0x03e8",
+ "code" : "0x6000600060006000600173e3476106159f87477ad639e3ddcbb6b240efe4596101f4f15073e3476106159f87477ad639e3ddcbb6b240efe45931600155",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x02540be400",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xe3476106159f87477ad639e3ddcbb6b240efe459" : {
+ "balance" : "0x03e8",
+ "code" : "0x60036001556001ff",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "sealEngine" : "NoProof"
+ },
+ "suicideThenCheckBalance_Homestead" : {
+ "_info" : {
+ "comment" : "[2:22:42] Vitalik Buterin: another one is: (i) self-destruct contract C, (ii) in the next transaction, send 1 wei to C, (iii) verify that C's balance is 1 wei. [2:23:01] Vitalik Buterin: the reason this is important now is that with EIP98, clients will be switching to not 'committing' their caches to the trie at the end of every tx. [2:23:18] Vitalik Buterin: and this means that selfdestruct has to be handled more carefully than before. [2:23:49] Vitalik Buterin: pyethereum screwed it up and it had to get fixed, though pyethereum's bug had to do with pre-spurious dragon 'existence' so it may not be relevant now.",
+ "filledwith" : "testeth 1.5.0.dev2+commit.c4d901f1.dirty",
+ "lllcversion" : "Version: 0.4.25-develop.2018.8.9+commit.63d071d6.mod.Linux.g++",
+ "source" : "src/BlockchainTestsFiller/bcStateTests/suicideThenCheckBalanceFiller.json",
+ "sourceHash" : "28cfa7559250e7b3021d5879d78ad8c18746fcbbd187e76b3348fca46ba0459b"
+ },
+ "blocks" : [
+ {
+ "blockHeader" : {
+ "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "coinbase" : "0x8888f1f195afa192cfee860698584c030f4c9db1",
+ "difficulty" : "0x020000",
+ "extraData" : "",
+ "gasLimit" : "0x2fefd8",
+ "gasUsed" : "0x016c6e",
+ "hash" : "0xaf212079a761ed7737fa264748d7c95aacaab13b73be7737212feffc5da6d514",
+ "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "nonce" : "0x0000000000000000",
+ "number" : "0x01",
+ "parentHash" : "0xdd5444acad93007dd583c16f113153e84b2937e5bbe9cbc91e9ed9257cb7bc4f",
+ "receiptTrie" : "0xe974c080ed7991a2f1908c880c9892ba50f91698dbfd063ddf2116ec51a05cd3",
+ "stateRoot" : "0x3838def69f4319ccf444b219f08cefcafcdfc331981bc459a9731080609a0a41",
+ "timestamp" : "0x5b843623",
+ "transactionsTrie" : "0x7af29f674f9538b253f2bb499951adc03426d1ea468da7e00f3487702dcda1ec",
+ "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ "rlp" : "0xf902c4f901faa0dd5444acad93007dd583c16f113153e84b2937e5bbe9cbc91e9ed9257cb7bc4fa01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347948888f1f195afa192cfee860698584c030f4c9db1a03838def69f4319ccf444b219f08cefcafcdfc331981bc459a9731080609a0a41a07af29f674f9538b253f2bb499951adc03426d1ea468da7e00f3487702dcda1eca0e974c080ed7991a2f1908c880c9892ba50f91698dbfd063ddf2116ec51a05cd3b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000001832fefd883016c6e845b84362380a00000000000000000000000000000000000000000000000000000000000000000880000000000000000f8c4f860800183061a8094e3476106159f87477ad639e3ddcbb6b240efe45980801ba06ec80a292680500270c0c41910099f740582ed4c969ae73130afb627a0904769a03d240fbac3547335d89c90c047a0064640dec7e4be36d70531900ec504842a18f860010183061a8094a3476106159f87477ad639e3ddcbb6b240efe45980801ca06b0037dab52c023d4705c500605aad0f0978a5242a9b8c69725da59360c77278a04504a5706bcea8684a9b03117b883e064d9d61bb2571e08583697a743815e5a7c0",
+ "transactions" : [
+ {
+ "data" : "0x",
+ "gasLimit" : "0x061a80",
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "r" : "0x6ec80a292680500270c0c41910099f740582ed4c969ae73130afb627a0904769",
+ "s" : "0x3d240fbac3547335d89c90c047a0064640dec7e4be36d70531900ec504842a18",
+ "to" : "0xe3476106159f87477ad639e3ddcbb6b240efe459",
+ "v" : "0x1b",
+ "value" : "0x00"
+ },
+ {
+ "data" : "0x",
+ "gasLimit" : "0x061a80",
+ "gasPrice" : "0x01",
+ "nonce" : "0x01",
+ "r" : "0x6b0037dab52c023d4705c500605aad0f0978a5242a9b8c69725da59360c77278",
+ "s" : "0x4504a5706bcea8684a9b03117b883e064d9d61bb2571e08583697a743815e5a7",
+ "to" : "0xa3476106159f87477ad639e3ddcbb6b240efe459",
+ "v" : "0x1c",
+ "value" : "0x00"
+ }
+ ],
+ "uncleHeaders" : [
+ ]
+ }
+ ],
+ "genesisBlockHeader" : {
+ "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "coinbase" : "0x8888f1f195afa192cfee860698584c030f4c9db1",
+ "difficulty" : "0x020000",
+ "extraData" : "0x42",
+ "gasLimit" : "0x2fefd8",
+ "gasUsed" : "0x00",
+ "hash" : "0xdd5444acad93007dd583c16f113153e84b2937e5bbe9cbc91e9ed9257cb7bc4f",
+ "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "nonce" : "0x0102030405060708",
+ "number" : "0x00",
+ "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "stateRoot" : "0x5cb6e49334985c0e218ea39019473195ff7146809c306b0dcbe3c851a7f02c65",
+ "timestamp" : "0x54c98c81",
+ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ "genesisRLP" : "0xf901fcf901f7a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347948888f1f195afa192cfee860698584c030f4c9db1a05cb6e49334985c0e218ea39019473195ff7146809c306b0dcbe3c851a7f02c65a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000080832fefd8808454c98c8142a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421880102030405060708c0c0",
+ "lastblockhash" : "0xaf212079a761ed7737fa264748d7c95aacaab13b73be7737212feffc5da6d514",
+ "network" : "Homestead",
+ "postState" : {
+ "0x0000000000000000000000000000000000000001" : {
+ "balance" : "0x03e8",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0x8888f1f195afa192cfee860698584c030f4c9db1" : {
+ "balance" : "0x4563918244f56c6e",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xa3476106159f87477ad639e3ddcbb6b240efe459" : {
+ "balance" : "0x03e7",
+ "code" : "0x6000600060006000600173e3476106159f87477ad639e3ddcbb6b240efe4596101f4f15073e3476106159f87477ad639e3ddcbb6b240efe45931600155",
+ "nonce" : "0x00",
+ "storage" : {
+ "0x01" : "0x01"
+ }
+ },
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x02540a7792",
+ "code" : "",
+ "nonce" : "0x02",
+ "storage" : {
+ }
+ },
+ "0xe3476106159f87477ad639e3ddcbb6b240efe459" : {
+ "balance" : "0x01",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "pre" : {
+ "0xa3476106159f87477ad639e3ddcbb6b240efe459" : {
+ "balance" : "0x03e8",
+ "code" : "0x6000600060006000600173e3476106159f87477ad639e3ddcbb6b240efe4596101f4f15073e3476106159f87477ad639e3ddcbb6b240efe45931600155",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x02540be400",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xe3476106159f87477ad639e3ddcbb6b240efe459" : {
+ "balance" : "0x03e8",
+ "code" : "0x60036001556001ff",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "sealEngine" : "NoProof"
+ }
+} \ No newline at end of file