From a1d04ce02d87629315dcd4f5a0eae27799091420 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Thu, 6 Dec 2018 15:13:26 +0300 Subject: [PATCH 1/3] extcodehash of dynamic account created in a subcall --- .../extCodeHashSubcallOOGFiller.yml | 149 ++++++++++++++++++ 1 file changed, 149 insertions(+) create mode 100644 src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashSubcallOOGFiller.yml diff --git a/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashSubcallOOGFiller.yml b/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashSubcallOOGFiller.yml new file mode 100644 index 00000000000..e4389f15eda --- /dev/null +++ b/src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashSubcallOOGFiller.yml @@ -0,0 +1,149 @@ +# create contract A in a subcall. go OOG in a subcall (revert happens) check EXTCODEHASH of A (in upper call) +--- +extCodeHashSubcallOOG: + _info: + comment: "create contract A in a subcall. go OOG in a subcall (revert happens) check EXTCODEHASH of A (in upper call)" + env: + currentCoinbase: 2adc25665018aa1fe0e6bc666dac8fc2697ff9ba + currentDifficulty: '0x20000' + currentGasLimit: "10000000" + currentNumber: "1" + currentTimestamp: "1000" + previousHash: 5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6 + pre: + '1000000000000000000000000000000000000000': + balance: '1000000000000000000' + code: | + { + (CALLCODE 350000 (CALLDATALOAD 0) 0 0 0 0 32) + (SSTORE 1 (EXTCODEHASH (MLOAD 0))) + (SSTORE 2 (EXTCODESIZE (MLOAD 0))) + (EXTCODECOPY (MLOAD 0) 0 0 32) + (SSTORE 3 (MLOAD 0)) + (SSTORE 4 (CALLCODE 50000 (MLOAD 0) 0 0 0 0 0)) + } + nonce: '0' + storage: {} + '2000000000000000000000000000000000000000': + balance: '1000000000000000000' + code: | + { (CALL 150000 0xa000000000000000000000000000000000000000 0 0 0 0 32) (RETURN 0 32)} + nonce: '0' + storage: {} + '2100000000000000000000000000000000000000': + balance: '1000000000000000000' + code: | + { (CALLCODE 150000 0xa000000000000000000000000000000000000000 0 0 0 0 32) (RETURN 0 32)} + nonce: '0' + storage: {} + '2200000000000000000000000000000000000000': + balance: '1000000000000000000' + code: | + { (DELEGATECALL 150000 0xa000000000000000000000000000000000000000 0 0 0 32) (RETURN 0 32)} + nonce: '0' + storage: {} + '3000000000000000000000000000000000000000': + balance: '1000000000000000000' + code: | + { (CALL 150000 0xa100000000000000000000000000000000000000 0 0 0 0 32) (RETURN 0 32)} + nonce: '0' + storage: {} + '3100000000000000000000000000000000000000': + balance: '1000000000000000000' + code: | + { (CALLCODE 250000 0xa100000000000000000000000000000000000000 0 0 0 0 32) (RETURN 0 32)} + nonce: '0' + storage: {} + '3200000000000000000000000000000000000000': + balance: '1000000000000000000' + code: | + { (DELEGATECALL 150000 0xa100000000000000000000000000000000000000 0 0 0 32) (RETURN 0 32)} + nonce: '0' + storage: {} + #create dynamic contract not going out of gas + a000000000000000000000000000000000000000: + balance: '1000000000000000000' + code: | + { + (MSTORE 0 + (CREATE2 0 0 + (lll + { + (MSTORE 0 0x6020602055) + (RETURN 27 5) + } + 0) + 0)) + (RETURN 0 32) + (STOP) + } + nonce: '0' + storage: {} + #create dynamic contract and go OOG + a100000000000000000000000000000000000000: + balance: '1000000000000000000' + code: | + { + (MSTORE 0 + (CREATE2 0 0 + (lll + { + (MSTORE 0 0x6020602055) + (RETURN 27 5) + } + 0) + 0)) + (SSTORE 1 1) (SSTORE 2 1) (SSTORE 3 1) (SSTORE 4 1) (SSTORE 5 1) (SSTORE 6 1) (SSTORE 7 1) + (SSTORE 8 1) (SSTORE 9 1) (SSTORE 10 1) (SSTORE 11 1) (SSTORE 12 1) (SSTORE 13 1) (SSTORE 14 1) + (RETURN 0 32) + (STOP) + } + nonce: '0' + storage: {} + a94f5374fce5edbc8e2a8697c15331677e6ebf0b: + balance: '1000000000000000000' + code: '0x00' + nonce: '0' + storage: {} + expect: + - indexes: + data: [ !!int 0, !!int 1, !!int 2 ] + gas: !!int -1 + value: !!int -1 + network: + - '>=Constantinople' + result: + 1000000000000000000000000000000000000000: + storage: { + 1: '0x9ff1f274b33e3b56edd7734520cbcdf2699fc1dc78b51644cdc56ca65bebeeae', + 2: '0x05', + 3: '0x6020602055000000000000000000000000000000000000000000000000000000', + 4: '0x01' + } + - indexes: + data: [ !!int 3, !!int 4, !!int 5 ] + gas: !!int -1 + value: !!int -1 + network: + - '>=Constantinople' + result: + 62ae0b997c8230e321b19d06b7004f25e1ac0637: + shouldnotexist: '1' + c566c94b132ce77d6e67add86c5a74e808578876: + shouldnotexist: '1' + transaction: + data: + - '0x0000000000000000000000002000000000000000000000000000000000000000' + - '0x0000000000000000000000002100000000000000000000000000000000000000' + - '0x0000000000000000000000002200000000000000000000000000000000000000' + - '0x0000000000000000000000003000000000000000000000000000000000000000' + - '0x0000000000000000000000003100000000000000000000000000000000000000' + - '0x0000000000000000000000003200000000000000000000000000000000000000' + gasLimit: + - '400000' + gasPrice: '1' + nonce: '0' + secretKey: 45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8 + to: '1000000000000000000000000000000000000000' + value: + - '1' From c3f71fb13d4f712d2c305c0093c52c8a8432bf16 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Thu, 6 Dec 2018 15:13:36 +0300 Subject: [PATCH 2/3] fill tests --- .../extCodeHashSubcallOOG_d0g0v0.json | 233 ++++++++++++++++++ .../extCodeHashSubcallOOG_d1g0v0.json | 233 ++++++++++++++++++ .../extCodeHashSubcallOOG_d2g0v0.json | 233 ++++++++++++++++++ .../extCodeHashSubcallOOG_d3g0v0.json | 223 +++++++++++++++++ .../extCodeHashSubcallOOG_d4g0v0.json | 223 +++++++++++++++++ .../extCodeHashSubcallOOG_d5g0v0.json | 223 +++++++++++++++++ .../stExtCodeHash/extCodeHashSubcallOOG.json | 169 +++++++++++++ .../extCodeHashSubcallOOG_d0g0v0Filler.json | 137 ++++++++++ .../extCodeHashSubcallOOG_d1g0v0Filler.json | 137 ++++++++++ .../extCodeHashSubcallOOG_d2g0v0Filler.json | 137 ++++++++++ .../extCodeHashSubcallOOG_d3g0v0Filler.json | 133 ++++++++++ .../extCodeHashSubcallOOG_d4g0v0Filler.json | 133 ++++++++++ .../extCodeHashSubcallOOG_d5g0v0Filler.json | 133 ++++++++++ 13 files changed, 2347 insertions(+) create mode 100644 BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d0g0v0.json create mode 100644 BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d1g0v0.json create mode 100644 BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d2g0v0.json create mode 100644 BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d3g0v0.json create mode 100644 BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d4g0v0.json create mode 100644 BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d5g0v0.json create mode 100644 GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG.json create mode 100644 src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d0g0v0Filler.json create mode 100644 src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d1g0v0Filler.json create mode 100644 src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d2g0v0Filler.json create mode 100644 src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d3g0v0Filler.json create mode 100644 src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d4g0v0Filler.json create mode 100644 src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d5g0v0Filler.json diff --git a/BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d0g0v0.json b/BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d0g0v0.json new file mode 100644 index 00000000000..758e7985e1a --- /dev/null +++ b/BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d0g0v0.json @@ -0,0 +1,233 @@ +{ + "extCodeHashSubcallOOG_d0g0v0_Constantinople" : { + "_info" : { + "comment" : "create contract A in a subcall. go OOG in a subcall (revert happens) check EXTCODEHASH of A (in upper call)", + "filledwith" : "testeth 1.5.0-alpha.6-70+commit.f344e78c.dirty", + "lllcversion" : "Version: 0.5.0-develop.2018.10.24+commit.01566c2e.Linux.g++", + "source" : "src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d0g0v0Filler.json", + "sourceHash" : "529c1f979761ae08d14154f42c14e7d0ab858c29993eefb7fbacc8533f02555f" + }, + "blocks" : [ + { + "blockHeader" : { + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "0x020000", + "extraData" : "", + "gasLimit" : "0x989680", + "gasUsed" : "0x021c33", + "hash" : "0xbeb9f278650c7e3809a3caaaaeef64d9c60216eb91d4052b50aa02ea1b541adb", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x0000000000000000", + "number" : "0x01", + "parentHash" : "0x75dfb0f97c2b07d1543795ca081145f3e037bd26fc76945af930b0579f33ac0a", + "receiptTrie" : "0x1ee0fa746648bb481123d5494e13457881a581bddf1cded69c24832b0b0c3569", + "stateRoot" : "0xb660bf46851bef34ee8cb2e465c6592479618cda718678ddaee7f7175d725191", + "timestamp" : "0x03e8", + "transactionsTrie" : "0xf1f4919989052ed720877d8089dbfd1c9ab9c5eba8cc33b5c0e8bdf2a4c85a79", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "rlp" : "0xf90280f901f8a075dfb0f97c2b07d1543795ca081145f3e037bd26fc76945af930b0579f33ac0aa01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa0b660bf46851bef34ee8cb2e465c6592479618cda718678ddaee7f7175d725191a0f1f4919989052ed720877d8089dbfd1c9ab9c5eba8cc33b5c0e8bdf2a4c85a79a01ee0fa746648bb481123d5494e13457881a581bddf1cded69c24832b0b0c3569b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000018398968083021c338203e880a00000000000000000000000000000000000000000000000000000000000000000880000000000000000f882f880800183061a8094100000000000000000000000000000000000000001a000000000000000000000000020000000000000000000000000000000000000001ba0b4a1dd19e4fcb531bf8ae54ae29584b8fa4364f29e7879c3aa63a1763e82cc6da0293b7f102d2c0f2161e69e70d141926827654f00240fc8f7ed39558d6e2b4887c0", + "transactions" : [ + { + "data" : "0x0000000000000000000000002000000000000000000000000000000000000000", + "gasLimit" : "0x061a80", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0xb4a1dd19e4fcb531bf8ae54ae29584b8fa4364f29e7879c3aa63a1763e82cc6d", + "s" : "0x293b7f102d2c0f2161e69e70d141926827654f00240fc8f7ed39558d6e2b4887", + "to" : "0x1000000000000000000000000000000000000000", + "v" : "0x1b", + "value" : "0x01" + } + ], + "uncleHeaders" : [ + ] + } + ], + "genesisBlockHeader" : { + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "0x020000", + "extraData" : "0x42", + "gasLimit" : "0x989680", + "gasUsed" : "0x00", + "hash" : "0x75dfb0f97c2b07d1543795ca081145f3e037bd26fc76945af930b0579f33ac0a", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "number" : "0x00", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0x1d69995dc0bc9ddc737e27c35f3fc540d8966de313a0043f31e0725a1080b350", + "timestamp" : "0x03b6", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "genesisRLP" : "0xf901faf901f5a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa01d69995dc0bc9ddc737e27c35f3fc540d8966de313a0043f31e0725a1080b350a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000830200008083989680808203b642a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421880102030405060708c0c0", + "lastblockhash" : "0xbeb9f278650c7e3809a3caaaaeef64d9c60216eb91d4052b50aa02ea1b541adb", + "network" : "Constantinople", + "postState" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640001", + "code" : "0x6020600060006000600060003562055730f2506000513f6001556000513b6002556020600060006000513c6000516003556000600060006000600060005161c350f2600455", + "nonce" : "0x00", + "storage" : { + "0x01" : "0x9ff1f274b33e3b56edd7734520cbcdf2699fc1dc78b51644cdc56ca65bebeeae", + "0x02" : "0x05", + "0x03" : "0x6020602055000000000000000000000000000000000000000000000000000000", + "0x04" : "0x01" + } + }, + "0x2000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a000000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { + "balance" : "0x1bc16d674eca1c33", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a100000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a1000000000000000000000000000000000000006203d090f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a100000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x62ae0b997c8230e321b19d06b7004f25e1ac0637" : { + "balance" : "0x00", + "code" : "0x6020602055", + "nonce" : "0x01", + "storage" : { + } + }, + "0xa000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80601960003960006000f560005260206000f300fe6460206020556000526005601bf3", + "nonce" : "0x01", + "storage" : { + } + }, + "0xa100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80605f60003960006000f56000526001600155600160025560016003556001600455600160055560016006556001600755600160085560016009556001600a556001600b556001600c556001600d556001600e5560206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a761e3cc", + "code" : "0x00", + "nonce" : "0x01", + "storage" : { + } + } + }, + "pre" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600060003562055730f2506000513f6001556000513b6002556020600060006000513c6000516003556000600060006000600060005161c350f2600455", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a000000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a100000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a1000000000000000000000000000000000000006203d090f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a100000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80601960003960006000f560005260206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80605f60003960006000f56000526001600155600160025560016003556001600455600160055560016006556001600755600160085560016009556001600a556001600b556001600c556001600d556001600e5560206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x00", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +} \ No newline at end of file diff --git a/BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d1g0v0.json b/BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d1g0v0.json new file mode 100644 index 00000000000..f98fef67f26 --- /dev/null +++ b/BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d1g0v0.json @@ -0,0 +1,233 @@ +{ + "extCodeHashSubcallOOG_d1g0v0_Constantinople" : { + "_info" : { + "comment" : "create contract A in a subcall. go OOG in a subcall (revert happens) check EXTCODEHASH of A (in upper call)", + "filledwith" : "testeth 1.5.0-alpha.6-70+commit.f344e78c.dirty", + "lllcversion" : "Version: 0.5.0-develop.2018.10.24+commit.01566c2e.Linux.g++", + "source" : "src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d1g0v0Filler.json", + "sourceHash" : "cd9427c214ad7fb08a752f9ccad794aad4f0019fb1c542c7a8fa44fa99a48dc8" + }, + "blocks" : [ + { + "blockHeader" : { + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "0x020000", + "extraData" : "", + "gasLimit" : "0x989680", + "gasUsed" : "0x021c33", + "hash" : "0x612cae0e87fed5c9a757797ebec2c051e299941d5529027ae4115fbfafb35758", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x0000000000000000", + "number" : "0x01", + "parentHash" : "0x75dfb0f97c2b07d1543795ca081145f3e037bd26fc76945af930b0579f33ac0a", + "receiptTrie" : "0x1ee0fa746648bb481123d5494e13457881a581bddf1cded69c24832b0b0c3569", + "stateRoot" : "0x205aa2e06bab99e5b403572c8ebb772ef633d216369199ca0d5781aac296d027", + "timestamp" : "0x03e8", + "transactionsTrie" : "0x06e4a3f50046d9287f340604bafc266cd6df01d2d6bc222ebc764a9325f26013", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "rlp" : "0xf90280f901f8a075dfb0f97c2b07d1543795ca081145f3e037bd26fc76945af930b0579f33ac0aa01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa0205aa2e06bab99e5b403572c8ebb772ef633d216369199ca0d5781aac296d027a006e4a3f50046d9287f340604bafc266cd6df01d2d6bc222ebc764a9325f26013a01ee0fa746648bb481123d5494e13457881a581bddf1cded69c24832b0b0c3569b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000018398968083021c338203e880a00000000000000000000000000000000000000000000000000000000000000000880000000000000000f882f880800183061a8094100000000000000000000000000000000000000001a000000000000000000000000021000000000000000000000000000000000000001ba06e624e40b52cf55aa93ebd23e520a589a188c48c4816b060737655c7611e0e12a05cc52c8d3113c752ebcbe8cd0cddaf13dba646e05432be4e2bc18793c41f2423c0", + "transactions" : [ + { + "data" : "0x0000000000000000000000002100000000000000000000000000000000000000", + "gasLimit" : "0x061a80", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0x6e624e40b52cf55aa93ebd23e520a589a188c48c4816b060737655c7611e0e12", + "s" : "0x5cc52c8d3113c752ebcbe8cd0cddaf13dba646e05432be4e2bc18793c41f2423", + "to" : "0x1000000000000000000000000000000000000000", + "v" : "0x1b", + "value" : "0x01" + } + ], + "uncleHeaders" : [ + ] + } + ], + "genesisBlockHeader" : { + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "0x020000", + "extraData" : "0x42", + "gasLimit" : "0x989680", + "gasUsed" : "0x00", + "hash" : "0x75dfb0f97c2b07d1543795ca081145f3e037bd26fc76945af930b0579f33ac0a", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "number" : "0x00", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0x1d69995dc0bc9ddc737e27c35f3fc540d8966de313a0043f31e0725a1080b350", + "timestamp" : "0x03b6", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "genesisRLP" : "0xf901faf901f5a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa01d69995dc0bc9ddc737e27c35f3fc540d8966de313a0043f31e0725a1080b350a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000830200008083989680808203b642a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421880102030405060708c0c0", + "lastblockhash" : "0x612cae0e87fed5c9a757797ebec2c051e299941d5529027ae4115fbfafb35758", + "network" : "Constantinople", + "postState" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640001", + "code" : "0x6020600060006000600060003562055730f2506000513f6001556000513b6002556020600060006000513c6000516003556000600060006000600060005161c350f2600455", + "nonce" : "0x01", + "storage" : { + "0x01" : "0x9ff1f274b33e3b56edd7734520cbcdf2699fc1dc78b51644cdc56ca65bebeeae", + "0x02" : "0x05", + "0x03" : "0x6020602055000000000000000000000000000000000000000000000000000000", + "0x04" : "0x01" + } + }, + "0x2000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a000000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { + "balance" : "0x1bc16d674eca1c33", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a100000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a1000000000000000000000000000000000000006203d090f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a100000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80601960003960006000f560005260206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80605f60003960006000f56000526001600155600160025560016003556001600455600160055560016006556001600755600160085560016009556001600a556001600b556001600c556001600d556001600e5560206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a761e3cc", + "code" : "0x00", + "nonce" : "0x01", + "storage" : { + } + }, + "0xc566c94b132ce77d6e67add86c5a74e808578876" : { + "balance" : "0x00", + "code" : "0x6020602055", + "nonce" : "0x01", + "storage" : { + } + } + }, + "pre" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600060003562055730f2506000513f6001556000513b6002556020600060006000513c6000516003556000600060006000600060005161c350f2600455", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a000000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a100000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a1000000000000000000000000000000000000006203d090f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a100000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80601960003960006000f560005260206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80605f60003960006000f56000526001600155600160025560016003556001600455600160055560016006556001600755600160085560016009556001600a556001600b556001600c556001600d556001600e5560206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x00", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +} \ No newline at end of file diff --git a/BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d2g0v0.json b/BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d2g0v0.json new file mode 100644 index 00000000000..6870996951d --- /dev/null +++ b/BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d2g0v0.json @@ -0,0 +1,233 @@ +{ + "extCodeHashSubcallOOG_d2g0v0_Constantinople" : { + "_info" : { + "comment" : "create contract A in a subcall. go OOG in a subcall (revert happens) check EXTCODEHASH of A (in upper call)", + "filledwith" : "testeth 1.5.0-alpha.6-70+commit.f344e78c.dirty", + "lllcversion" : "Version: 0.5.0-develop.2018.10.24+commit.01566c2e.Linux.g++", + "source" : "src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d2g0v0Filler.json", + "sourceHash" : "7088c2cc0b487e925082e2859cc3a4949a8f47471527f55e68868bcbaa66d8f7" + }, + "blocks" : [ + { + "blockHeader" : { + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "0x020000", + "extraData" : "", + "gasLimit" : "0x989680", + "gasUsed" : "0x021c30", + "hash" : "0x5b9e15693efc9767189fb9510e1960baaae52f497ac2d90ed49e639bb4f3666c", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x0000000000000000", + "number" : "0x01", + "parentHash" : "0x75dfb0f97c2b07d1543795ca081145f3e037bd26fc76945af930b0579f33ac0a", + "receiptTrie" : "0x29b6c16246b46e9e89443160541bb6a000f90078c699ca23b74d5e00e72a7e2b", + "stateRoot" : "0xe6cccede378731a69fe8776e1eb990b290e4105bf732f6b1251b469c7ebe6606", + "timestamp" : "0x03e8", + "transactionsTrie" : "0xb00a3bf510b41f03dcc57911d3f2fd0965fe7b7b544238d1f2eaf5c7afd377ce", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "rlp" : "0xf90280f901f8a075dfb0f97c2b07d1543795ca081145f3e037bd26fc76945af930b0579f33ac0aa01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa0e6cccede378731a69fe8776e1eb990b290e4105bf732f6b1251b469c7ebe6606a0b00a3bf510b41f03dcc57911d3f2fd0965fe7b7b544238d1f2eaf5c7afd377cea029b6c16246b46e9e89443160541bb6a000f90078c699ca23b74d5e00e72a7e2bb901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000018398968083021c308203e880a00000000000000000000000000000000000000000000000000000000000000000880000000000000000f882f880800183061a8094100000000000000000000000000000000000000001a000000000000000000000000022000000000000000000000000000000000000001ba020643b777466cf8298c8e6637c01af2c0a4c1cf02e20522a1b43d1e521ef3563a07b950ca380a060b7a192b61836913c6e4efcbfddd458ce6d1a37d7533d19198ac0", + "transactions" : [ + { + "data" : "0x0000000000000000000000002200000000000000000000000000000000000000", + "gasLimit" : "0x061a80", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0x20643b777466cf8298c8e6637c01af2c0a4c1cf02e20522a1b43d1e521ef3563", + "s" : "0x7b950ca380a060b7a192b61836913c6e4efcbfddd458ce6d1a37d7533d19198a", + "to" : "0x1000000000000000000000000000000000000000", + "v" : "0x1b", + "value" : "0x01" + } + ], + "uncleHeaders" : [ + ] + } + ], + "genesisBlockHeader" : { + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "0x020000", + "extraData" : "0x42", + "gasLimit" : "0x989680", + "gasUsed" : "0x00", + "hash" : "0x75dfb0f97c2b07d1543795ca081145f3e037bd26fc76945af930b0579f33ac0a", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "number" : "0x00", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0x1d69995dc0bc9ddc737e27c35f3fc540d8966de313a0043f31e0725a1080b350", + "timestamp" : "0x03b6", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "genesisRLP" : "0xf901faf901f5a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa01d69995dc0bc9ddc737e27c35f3fc540d8966de313a0043f31e0725a1080b350a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000830200008083989680808203b642a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421880102030405060708c0c0", + "lastblockhash" : "0x5b9e15693efc9767189fb9510e1960baaae52f497ac2d90ed49e639bb4f3666c", + "network" : "Constantinople", + "postState" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640001", + "code" : "0x6020600060006000600060003562055730f2506000513f6001556000513b6002556020600060006000513c6000516003556000600060006000600060005161c350f2600455", + "nonce" : "0x01", + "storage" : { + "0x01" : "0x9ff1f274b33e3b56edd7734520cbcdf2699fc1dc78b51644cdc56ca65bebeeae", + "0x02" : "0x05", + "0x03" : "0x6020602055000000000000000000000000000000000000000000000000000000", + "0x04" : "0x01" + } + }, + "0x2000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a000000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { + "balance" : "0x1bc16d674eca1c30", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a100000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a1000000000000000000000000000000000000006203d090f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a100000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80601960003960006000f560005260206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80605f60003960006000f56000526001600155600160025560016003556001600455600160055560016006556001600755600160085560016009556001600a556001600b556001600c556001600d556001600e5560206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a761e3cf", + "code" : "0x00", + "nonce" : "0x01", + "storage" : { + } + }, + "0xc566c94b132ce77d6e67add86c5a74e808578876" : { + "balance" : "0x00", + "code" : "0x6020602055", + "nonce" : "0x01", + "storage" : { + } + } + }, + "pre" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600060003562055730f2506000513f6001556000513b6002556020600060006000513c6000516003556000600060006000600060005161c350f2600455", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a000000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a100000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a1000000000000000000000000000000000000006203d090f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a100000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80601960003960006000f560005260206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80605f60003960006000f56000526001600155600160025560016003556001600455600160055560016006556001600755600160085560016009556001600a556001600b556001600c556001600d556001600e5560206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x00", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +} \ No newline at end of file diff --git a/BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d3g0v0.json b/BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d3g0v0.json new file mode 100644 index 00000000000..ef938a2ff60 --- /dev/null +++ b/BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d3g0v0.json @@ -0,0 +1,223 @@ +{ + "extCodeHashSubcallOOG_d3g0v0_Constantinople" : { + "_info" : { + "comment" : "create contract A in a subcall. go OOG in a subcall (revert happens) check EXTCODEHASH of A (in upper call)", + "filledwith" : "testeth 1.5.0-alpha.6-70+commit.f344e78c.dirty", + "lllcversion" : "Version: 0.5.0-develop.2018.10.24+commit.01566c2e.Linux.g++", + "source" : "src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d3g0v0Filler.json", + "sourceHash" : "7a93e70b0fbd61befaaf06a5ff62d6f17c67cdc9bfe569825ad77db7be7196d0" + }, + "blocks" : [ + { + "blockHeader" : { + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "0x020000", + "extraData" : "", + "gasLimit" : "0x989680", + "gasUsed" : "0x02fcf1", + "hash" : "0xc3d9c1ad548075fb4c516103b94fd7d592ebfc23d682ee39a2c1ea8017817ae0", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x0000000000000000", + "number" : "0x01", + "parentHash" : "0x75dfb0f97c2b07d1543795ca081145f3e037bd26fc76945af930b0579f33ac0a", + "receiptTrie" : "0xd47d1aea50983a27d7e59b79843ac116ef2894fabd167ab6f444ab8a1f84a7e7", + "stateRoot" : "0xe217e7442719abfdde0846edff8a07412bd81878ae89897c6acf6b6789eb1a9a", + "timestamp" : "0x03e8", + "transactionsTrie" : "0x009ef82d4438714293ce02f0466b7551c326d0265702202d4af52c241b8dbf9e", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "rlp" : "0xf90280f901f8a075dfb0f97c2b07d1543795ca081145f3e037bd26fc76945af930b0579f33ac0aa01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa0e217e7442719abfdde0846edff8a07412bd81878ae89897c6acf6b6789eb1a9aa0009ef82d4438714293ce02f0466b7551c326d0265702202d4af52c241b8dbf9ea0d47d1aea50983a27d7e59b79843ac116ef2894fabd167ab6f444ab8a1f84a7e7b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000001839896808302fcf18203e880a00000000000000000000000000000000000000000000000000000000000000000880000000000000000f882f880800183061a8094100000000000000000000000000000000000000001a000000000000000000000000030000000000000000000000000000000000000001ca032b146d9bf209b8991e736d7626c70c8538e2fb46ef5d90e372443a2265976a6a008130060ce543b295e903a6cd822d3df02cf82cdbcc822a87cee962c42c068c5c0", + "transactions" : [ + { + "data" : "0x0000000000000000000000003000000000000000000000000000000000000000", + "gasLimit" : "0x061a80", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0x32b146d9bf209b8991e736d7626c70c8538e2fb46ef5d90e372443a2265976a6", + "s" : "0x08130060ce543b295e903a6cd822d3df02cf82cdbcc822a87cee962c42c068c5", + "to" : "0x1000000000000000000000000000000000000000", + "v" : "0x1c", + "value" : "0x01" + } + ], + "uncleHeaders" : [ + ] + } + ], + "genesisBlockHeader" : { + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "0x020000", + "extraData" : "0x42", + "gasLimit" : "0x989680", + "gasUsed" : "0x00", + "hash" : "0x75dfb0f97c2b07d1543795ca081145f3e037bd26fc76945af930b0579f33ac0a", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "number" : "0x00", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0x1d69995dc0bc9ddc737e27c35f3fc540d8966de313a0043f31e0725a1080b350", + "timestamp" : "0x03b6", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "genesisRLP" : "0xf901faf901f5a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa01d69995dc0bc9ddc737e27c35f3fc540d8966de313a0043f31e0725a1080b350a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000830200008083989680808203b642a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421880102030405060708c0c0", + "lastblockhash" : "0xc3d9c1ad548075fb4c516103b94fd7d592ebfc23d682ee39a2c1ea8017817ae0", + "network" : "Constantinople", + "postState" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640001", + "code" : "0x6020600060006000600060003562055730f2506000513f6001556000513b6002556020600060006000513c6000516003556000600060006000600060005161c350f2600455", + "nonce" : "0x00", + "storage" : { + "0x04" : "0x01" + } + }, + "0x2000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a000000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { + "balance" : "0x1bc16d674ecafcf1", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a100000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a1000000000000000000000000000000000000006203d090f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a100000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80601960003960006000f560005260206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80605f60003960006000f56000526001600155600160025560016003556001600455600160055560016006556001600755600160085560016009556001600a556001600b556001600c556001600d556001600e5560206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a761030e", + "code" : "0x00", + "nonce" : "0x01", + "storage" : { + } + } + }, + "pre" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600060003562055730f2506000513f6001556000513b6002556020600060006000513c6000516003556000600060006000600060005161c350f2600455", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a000000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a100000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a1000000000000000000000000000000000000006203d090f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a100000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80601960003960006000f560005260206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80605f60003960006000f56000526001600155600160025560016003556001600455600160055560016006556001600755600160085560016009556001600a556001600b556001600c556001600d556001600e5560206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x00", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +} \ No newline at end of file diff --git a/BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d4g0v0.json b/BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d4g0v0.json new file mode 100644 index 00000000000..df161062920 --- /dev/null +++ b/BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d4g0v0.json @@ -0,0 +1,223 @@ +{ + "extCodeHashSubcallOOG_d4g0v0_Constantinople" : { + "_info" : { + "comment" : "create contract A in a subcall. go OOG in a subcall (revert happens) check EXTCODEHASH of A (in upper call)", + "filledwith" : "testeth 1.5.0-alpha.6-70+commit.f344e78c.dirty", + "lllcversion" : "Version: 0.5.0-develop.2018.10.24+commit.01566c2e.Linux.g++", + "source" : "src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d4g0v0Filler.json", + "sourceHash" : "0ea03b5b9bc4c30c2d2f92e5544109a10c5f38d04fe3591750d51073558fecc4" + }, + "blocks" : [ + { + "blockHeader" : { + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "0x020000", + "extraData" : "", + "gasLimit" : "0x989680", + "gasUsed" : "0x048391", + "hash" : "0x26e0e1a1f6f683ce51e5ed88d4d5f4f31919a8659d5098fe8c9d47fb0dbbe126", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x0000000000000000", + "number" : "0x01", + "parentHash" : "0x75dfb0f97c2b07d1543795ca081145f3e037bd26fc76945af930b0579f33ac0a", + "receiptTrie" : "0x21352cf382ae96370c7f1b849967c444747e4e9a647025311cda0a941418ddcc", + "stateRoot" : "0x6428b73cf2683bc818170321af122860b31208d1cf8cabbb59a8b4de401eaf72", + "timestamp" : "0x03e8", + "transactionsTrie" : "0x36eb613a2be9ad901359be5e385de171b2a9e33432462ad650c1a1465d0f5961", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "rlp" : "0xf90280f901f8a075dfb0f97c2b07d1543795ca081145f3e037bd26fc76945af930b0579f33ac0aa01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa06428b73cf2683bc818170321af122860b31208d1cf8cabbb59a8b4de401eaf72a036eb613a2be9ad901359be5e385de171b2a9e33432462ad650c1a1465d0f5961a021352cf382ae96370c7f1b849967c444747e4e9a647025311cda0a941418ddccb9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000830200000183989680830483918203e880a00000000000000000000000000000000000000000000000000000000000000000880000000000000000f882f880800183061a8094100000000000000000000000000000000000000001a000000000000000000000000031000000000000000000000000000000000000001ba0e7b01581161e1c9b36882e6a70bd8bbe166090a2552248bd5771e3bf93c82186a00d487fa3fde3c4095a4af5a7c0e854d37013c45df5da342825bdba17d584deaac0", + "transactions" : [ + { + "data" : "0x0000000000000000000000003100000000000000000000000000000000000000", + "gasLimit" : "0x061a80", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0xe7b01581161e1c9b36882e6a70bd8bbe166090a2552248bd5771e3bf93c82186", + "s" : "0x0d487fa3fde3c4095a4af5a7c0e854d37013c45df5da342825bdba17d584deaa", + "to" : "0x1000000000000000000000000000000000000000", + "v" : "0x1b", + "value" : "0x01" + } + ], + "uncleHeaders" : [ + ] + } + ], + "genesisBlockHeader" : { + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "0x020000", + "extraData" : "0x42", + "gasLimit" : "0x989680", + "gasUsed" : "0x00", + "hash" : "0x75dfb0f97c2b07d1543795ca081145f3e037bd26fc76945af930b0579f33ac0a", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "number" : "0x00", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0x1d69995dc0bc9ddc737e27c35f3fc540d8966de313a0043f31e0725a1080b350", + "timestamp" : "0x03b6", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "genesisRLP" : "0xf901faf901f5a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa01d69995dc0bc9ddc737e27c35f3fc540d8966de313a0043f31e0725a1080b350a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000830200008083989680808203b642a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421880102030405060708c0c0", + "lastblockhash" : "0x26e0e1a1f6f683ce51e5ed88d4d5f4f31919a8659d5098fe8c9d47fb0dbbe126", + "network" : "Constantinople", + "postState" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640001", + "code" : "0x6020600060006000600060003562055730f2506000513f6001556000513b6002556020600060006000513c6000516003556000600060006000600060005161c350f2600455", + "nonce" : "0x00", + "storage" : { + "0x04" : "0x01" + } + }, + "0x2000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a000000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { + "balance" : "0x1bc16d674ecc8391", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a100000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a1000000000000000000000000000000000000006203d090f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a100000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80601960003960006000f560005260206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80605f60003960006000f56000526001600155600160025560016003556001600455600160055560016006556001600755600160085560016009556001600a556001600b556001600c556001600d556001600e5560206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a75f7c6e", + "code" : "0x00", + "nonce" : "0x01", + "storage" : { + } + } + }, + "pre" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600060003562055730f2506000513f6001556000513b6002556020600060006000513c6000516003556000600060006000600060005161c350f2600455", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a000000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a100000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a1000000000000000000000000000000000000006203d090f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a100000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80601960003960006000f560005260206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80605f60003960006000f56000526001600155600160025560016003556001600455600160055560016006556001600755600160085560016009556001600a556001600b556001600c556001600d556001600e5560206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x00", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +} \ No newline at end of file diff --git a/BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d5g0v0.json b/BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d5g0v0.json new file mode 100644 index 00000000000..0d10c669808 --- /dev/null +++ b/BlockchainTests/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d5g0v0.json @@ -0,0 +1,223 @@ +{ + "extCodeHashSubcallOOG_d5g0v0_Constantinople" : { + "_info" : { + "comment" : "create contract A in a subcall. go OOG in a subcall (revert happens) check EXTCODEHASH of A (in upper call)", + "filledwith" : "testeth 1.5.0-alpha.6-70+commit.f344e78c.dirty", + "lllcversion" : "Version: 0.5.0-develop.2018.10.24+commit.01566c2e.Linux.g++", + "source" : "src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d5g0v0Filler.json", + "sourceHash" : "1239e34a4ad097c8f91ea2efb8b52858b6feb594db10a2f907084cad9de836c0" + }, + "blocks" : [ + { + "blockHeader" : { + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "0x020000", + "extraData" : "", + "gasLimit" : "0x989680", + "gasUsed" : "0x02fcee", + "hash" : "0x0c6d956bcf23531ac4f0b38d78dad600700a6cace20d4c5ff8bf317d5435a6d2", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x0000000000000000", + "number" : "0x01", + "parentHash" : "0x75dfb0f97c2b07d1543795ca081145f3e037bd26fc76945af930b0579f33ac0a", + "receiptTrie" : "0x58105bdaa31f73688a131afdaaf91ec888dde0f71d7d171e686f32840b5dbe35", + "stateRoot" : "0x02181b7c0667d4e0f9aeec4462b6a6a9403c4b9a4dfb342729279a53c7a79e2b", + "timestamp" : "0x03e8", + "transactionsTrie" : "0x5b4d50833bc9ec5b2ff7854ebe3b0e02b8d6596df579b0d209afba18f4294b04", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "rlp" : "0xf90280f901f8a075dfb0f97c2b07d1543795ca081145f3e037bd26fc76945af930b0579f33ac0aa01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa002181b7c0667d4e0f9aeec4462b6a6a9403c4b9a4dfb342729279a53c7a79e2ba05b4d50833bc9ec5b2ff7854ebe3b0e02b8d6596df579b0d209afba18f4294b04a058105bdaa31f73688a131afdaaf91ec888dde0f71d7d171e686f32840b5dbe35b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000001839896808302fcee8203e880a00000000000000000000000000000000000000000000000000000000000000000880000000000000000f882f880800183061a8094100000000000000000000000000000000000000001a000000000000000000000000032000000000000000000000000000000000000001ca02f1374c6e865d1e97cca681d22301535b34baab05ae5f5f96736cfbf5680510fa0266e3c55b1565d5aac75e6725e7cafe6138ed86d4f53d6eefee2b25f74ad1d52c0", + "transactions" : [ + { + "data" : "0x0000000000000000000000003200000000000000000000000000000000000000", + "gasLimit" : "0x061a80", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0x2f1374c6e865d1e97cca681d22301535b34baab05ae5f5f96736cfbf5680510f", + "s" : "0x266e3c55b1565d5aac75e6725e7cafe6138ed86d4f53d6eefee2b25f74ad1d52", + "to" : "0x1000000000000000000000000000000000000000", + "v" : "0x1c", + "value" : "0x01" + } + ], + "uncleHeaders" : [ + ] + } + ], + "genesisBlockHeader" : { + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "0x020000", + "extraData" : "0x42", + "gasLimit" : "0x989680", + "gasUsed" : "0x00", + "hash" : "0x75dfb0f97c2b07d1543795ca081145f3e037bd26fc76945af930b0579f33ac0a", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "number" : "0x00", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0x1d69995dc0bc9ddc737e27c35f3fc540d8966de313a0043f31e0725a1080b350", + "timestamp" : "0x03b6", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "genesisRLP" : "0xf901faf901f5a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa01d69995dc0bc9ddc737e27c35f3fc540d8966de313a0043f31e0725a1080b350a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000830200008083989680808203b642a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421880102030405060708c0c0", + "lastblockhash" : "0x0c6d956bcf23531ac4f0b38d78dad600700a6cace20d4c5ff8bf317d5435a6d2", + "network" : "Constantinople", + "postState" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640001", + "code" : "0x6020600060006000600060003562055730f2506000513f6001556000513b6002556020600060006000513c6000516003556000600060006000600060005161c350f2600455", + "nonce" : "0x00", + "storage" : { + "0x04" : "0x01" + } + }, + "0x2000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a000000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { + "balance" : "0x1bc16d674ecafcee", + "code" : "", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a100000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a1000000000000000000000000000000000000006203d090f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a100000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80601960003960006000f560005260206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80605f60003960006000f56000526001600155600160025560016003556001600455600160055560016006556001600755600160085560016009556001600a556001600b556001600c556001600d556001600e5560206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a7610311", + "code" : "0x00", + "nonce" : "0x01", + "storage" : { + } + } + }, + "pre" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600060003562055730f2506000513f6001556000513b6002556020600060006000513c6000516003556000600060006000600060005161c350f2600455", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a000000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a100000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a1000000000000000000000000000000000000006203d090f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a100000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80601960003960006000f560005260206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80605f60003960006000f56000526001600155600160025560016003556001600455600160055560016006556001600755600160085560016009556001600a556001600b556001600c556001600d556001600e5560206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x00", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +} \ No newline at end of file diff --git a/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG.json b/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG.json new file mode 100644 index 00000000000..b1b5a2c3f37 --- /dev/null +++ b/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG.json @@ -0,0 +1,169 @@ +{ + "extCodeHashSubcallOOG" : { + "_info" : { + "comment" : "create contract A in a subcall. go OOG in a subcall (revert happens) check EXTCODEHASH of A (in upper call)", + "filledwith" : "testeth 1.5.0-alpha.6-70+commit.f344e78c.dirty", + "lllcversion" : "Version: 0.5.0-develop.2018.10.24+commit.01566c2e.Linux.g++", + "source" : "src/GeneralStateTestsFiller/stExtCodeHash/extCodeHashSubcallOOGFiller.yml", + "sourceHash" : "2272c38b5467ab6dbaffc558c1e79c12d4728a63d8f48882e61e96ea1cfbe74a" + }, + "env" : { + "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x20000", + "currentGasLimit" : "0x989680", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "Constantinople" : [ + { + "hash" : "0xffd73c49b9e7eb2b519c78e69468eacee91ed9fa5cef76c1ef6eaa3854cf82d8", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "hash" : "0x028f5a142aa383f26307f99c2c44b8f239d8530030084488d413659e239f818a", + "indexes" : { + "data" : 1, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "hash" : "0x55515094e8e9807c64ff63ab8d3714f13095cf95d9a7cb1b04c87df24285c81e", + "indexes" : { + "data" : 2, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "hash" : "0x3d82c3339553047cc38cb4f3b7e53e6f87d05a40fa49aeea20d306a64029d59f", + "indexes" : { + "data" : 3, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "hash" : "0x56b13c869e9fd408e102e07c3408ae0acbf6bc8d12cd659147ca2177e1bb425d", + "indexes" : { + "data" : 4, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + { + "hash" : "0x56e9445e51de5655b6aee82a8fcb6e9c4852340216e04520b41d27130aa2288b", + "indexes" : { + "data" : 5, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ] + }, + "pre" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600060003562055730f2506000513f6001556000513b6002556020600060006000513c6000516003556000600060006000600060005161c350f2600455", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a000000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a100000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a1000000000000000000000000000000000000006203d090f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a100000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80601960003960006000f560005260206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80605f60003960006000f56000526001600155600160025560016003556001600455600160055560016006556001600755600160085560016009556001600a556001600b556001600c556001600d556001600e5560206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x00", + "nonce" : "0x00", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "0x0000000000000000000000002000000000000000000000000000000000000000", + "0x0000000000000000000000002100000000000000000000000000000000000000", + "0x0000000000000000000000002200000000000000000000000000000000000000", + "0x0000000000000000000000003000000000000000000000000000000000000000", + "0x0000000000000000000000003100000000000000000000000000000000000000", + "0x0000000000000000000000003200000000000000000000000000000000000000" + ], + "gasLimit" : [ + "0x061a80" + ], + "gasPrice" : "0x01", + "nonce" : "0x00", + "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "0x1000000000000000000000000000000000000000", + "value" : [ + "0x01" + ] + } + } +} \ No newline at end of file diff --git a/src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d0g0v0Filler.json b/src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d0g0v0Filler.json new file mode 100644 index 00000000000..e676cf0a093 --- /dev/null +++ b/src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d0g0v0Filler.json @@ -0,0 +1,137 @@ +{ + "extCodeHashSubcallOOG_d0g0v0" : { + "_info" : { + "comment" : "create contract A in a subcall. go OOG in a subcall (revert happens) check EXTCODEHASH of A (in upper call)" + }, + "blocks" : [ + { + "blockHeaderPremine" : { + "difficulty" : "0x020000", + "gasLimit" : "0x989680", + "timestamp" : "0x03e8", + "updatePoW" : "1" + }, + "transactions" : [ + { + "data" : "0x0000000000000000000000002000000000000000000000000000000000000000", + "gasLimit" : "0x061a80", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0xb4a1dd19e4fcb531bf8ae54ae29584b8fa4364f29e7879c3aa63a1763e82cc6d", + "s" : "0x293b7f102d2c0f2161e69e70d141926827654f00240fc8f7ed39558d6e2b4887", + "to" : "0x1000000000000000000000000000000000000000", + "v" : "0x1b", + "value" : "0x01" + } + ], + "uncleHeaders" : [ + ] + } + ], + "expect" : [ + { + "network" : "Constantinople", + "result" : { + "0x1000000000000000000000000000000000000000" : { + "storage" : { + "0x01" : "0x9ff1f274b33e3b56edd7734520cbcdf2699fc1dc78b51644cdc56ca65bebeeae", + "0x02" : "0x05", + "0x03" : "0x6020602055000000000000000000000000000000000000000000000000000000", + "0x04" : "0x01" + } + } + } + } + ], + "genesisBlockHeader" : { + "bloom" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "131072", + "extraData" : "0x42", + "gasLimit" : "0x989680", + "gasUsed" : "0", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "number" : "0", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0xf99eb1626cfa6db435c0836235942d7ccaa935f1ae247d3f1c21e495685f903a", + "timestamp" : "0x03b6", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "pre" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600060003562055730f2506000513f6001556000513b6002556020600060006000513c6000516003556000600060006000600060005161c350f2600455", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a000000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a100000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a1000000000000000000000000000000000000006203d090f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a100000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80601960003960006000f560005260206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80605f60003960006000f56000526001600155600160025560016003556001600455600160055560016006556001600755600160085560016009556001600a556001600b556001600c556001600d556001600e5560206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x00", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +} \ No newline at end of file diff --git a/src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d1g0v0Filler.json b/src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d1g0v0Filler.json new file mode 100644 index 00000000000..7e7320a1640 --- /dev/null +++ b/src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d1g0v0Filler.json @@ -0,0 +1,137 @@ +{ + "extCodeHashSubcallOOG_d1g0v0" : { + "_info" : { + "comment" : "create contract A in a subcall. go OOG in a subcall (revert happens) check EXTCODEHASH of A (in upper call)" + }, + "blocks" : [ + { + "blockHeaderPremine" : { + "difficulty" : "0x020000", + "gasLimit" : "0x989680", + "timestamp" : "0x03e8", + "updatePoW" : "1" + }, + "transactions" : [ + { + "data" : "0x0000000000000000000000002100000000000000000000000000000000000000", + "gasLimit" : "0x061a80", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0x6e624e40b52cf55aa93ebd23e520a589a188c48c4816b060737655c7611e0e12", + "s" : "0x5cc52c8d3113c752ebcbe8cd0cddaf13dba646e05432be4e2bc18793c41f2423", + "to" : "0x1000000000000000000000000000000000000000", + "v" : "0x1b", + "value" : "0x01" + } + ], + "uncleHeaders" : [ + ] + } + ], + "expect" : [ + { + "network" : "Constantinople", + "result" : { + "0x1000000000000000000000000000000000000000" : { + "storage" : { + "0x01" : "0x9ff1f274b33e3b56edd7734520cbcdf2699fc1dc78b51644cdc56ca65bebeeae", + "0x02" : "0x05", + "0x03" : "0x6020602055000000000000000000000000000000000000000000000000000000", + "0x04" : "0x01" + } + } + } + } + ], + "genesisBlockHeader" : { + "bloom" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "131072", + "extraData" : "0x42", + "gasLimit" : "0x989680", + "gasUsed" : "0", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "number" : "0", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0xf99eb1626cfa6db435c0836235942d7ccaa935f1ae247d3f1c21e495685f903a", + "timestamp" : "0x03b6", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "pre" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600060003562055730f2506000513f6001556000513b6002556020600060006000513c6000516003556000600060006000600060005161c350f2600455", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a000000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a100000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a1000000000000000000000000000000000000006203d090f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a100000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80601960003960006000f560005260206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80605f60003960006000f56000526001600155600160025560016003556001600455600160055560016006556001600755600160085560016009556001600a556001600b556001600c556001600d556001600e5560206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x00", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +} \ No newline at end of file diff --git a/src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d2g0v0Filler.json b/src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d2g0v0Filler.json new file mode 100644 index 00000000000..8c5057a705e --- /dev/null +++ b/src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d2g0v0Filler.json @@ -0,0 +1,137 @@ +{ + "extCodeHashSubcallOOG_d2g0v0" : { + "_info" : { + "comment" : "create contract A in a subcall. go OOG in a subcall (revert happens) check EXTCODEHASH of A (in upper call)" + }, + "blocks" : [ + { + "blockHeaderPremine" : { + "difficulty" : "0x020000", + "gasLimit" : "0x989680", + "timestamp" : "0x03e8", + "updatePoW" : "1" + }, + "transactions" : [ + { + "data" : "0x0000000000000000000000002200000000000000000000000000000000000000", + "gasLimit" : "0x061a80", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0x20643b777466cf8298c8e6637c01af2c0a4c1cf02e20522a1b43d1e521ef3563", + "s" : "0x7b950ca380a060b7a192b61836913c6e4efcbfddd458ce6d1a37d7533d19198a", + "to" : "0x1000000000000000000000000000000000000000", + "v" : "0x1b", + "value" : "0x01" + } + ], + "uncleHeaders" : [ + ] + } + ], + "expect" : [ + { + "network" : "Constantinople", + "result" : { + "0x1000000000000000000000000000000000000000" : { + "storage" : { + "0x01" : "0x9ff1f274b33e3b56edd7734520cbcdf2699fc1dc78b51644cdc56ca65bebeeae", + "0x02" : "0x05", + "0x03" : "0x6020602055000000000000000000000000000000000000000000000000000000", + "0x04" : "0x01" + } + } + } + } + ], + "genesisBlockHeader" : { + "bloom" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "131072", + "extraData" : "0x42", + "gasLimit" : "0x989680", + "gasUsed" : "0", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "number" : "0", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0xf99eb1626cfa6db435c0836235942d7ccaa935f1ae247d3f1c21e495685f903a", + "timestamp" : "0x03b6", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "pre" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600060003562055730f2506000513f6001556000513b6002556020600060006000513c6000516003556000600060006000600060005161c350f2600455", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a000000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a100000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a1000000000000000000000000000000000000006203d090f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a100000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80601960003960006000f560005260206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80605f60003960006000f56000526001600155600160025560016003556001600455600160055560016006556001600755600160085560016009556001600a556001600b556001600c556001600d556001600e5560206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x00", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +} \ No newline at end of file diff --git a/src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d3g0v0Filler.json b/src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d3g0v0Filler.json new file mode 100644 index 00000000000..d515079671d --- /dev/null +++ b/src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d3g0v0Filler.json @@ -0,0 +1,133 @@ +{ + "extCodeHashSubcallOOG_d3g0v0" : { + "_info" : { + "comment" : "create contract A in a subcall. go OOG in a subcall (revert happens) check EXTCODEHASH of A (in upper call)" + }, + "blocks" : [ + { + "blockHeaderPremine" : { + "difficulty" : "0x020000", + "gasLimit" : "0x989680", + "timestamp" : "0x03e8", + "updatePoW" : "1" + }, + "transactions" : [ + { + "data" : "0x0000000000000000000000003000000000000000000000000000000000000000", + "gasLimit" : "0x061a80", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0x32b146d9bf209b8991e736d7626c70c8538e2fb46ef5d90e372443a2265976a6", + "s" : "0x08130060ce543b295e903a6cd822d3df02cf82cdbcc822a87cee962c42c068c5", + "to" : "0x1000000000000000000000000000000000000000", + "v" : "0x1c", + "value" : "0x01" + } + ], + "uncleHeaders" : [ + ] + } + ], + "expect" : [ + { + "network" : "Constantinople", + "result" : { + "0x62ae0b997c8230e321b19d06b7004f25e1ac0637" : { + }, + "0xc566c94b132ce77d6e67add86c5a74e808578876" : { + } + } + } + ], + "genesisBlockHeader" : { + "bloom" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "131072", + "extraData" : "0x42", + "gasLimit" : "0x989680", + "gasUsed" : "0", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "number" : "0", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0xf99eb1626cfa6db435c0836235942d7ccaa935f1ae247d3f1c21e495685f903a", + "timestamp" : "0x03b6", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "pre" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600060003562055730f2506000513f6001556000513b6002556020600060006000513c6000516003556000600060006000600060005161c350f2600455", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a000000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a100000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a1000000000000000000000000000000000000006203d090f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a100000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80601960003960006000f560005260206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80605f60003960006000f56000526001600155600160025560016003556001600455600160055560016006556001600755600160085560016009556001600a556001600b556001600c556001600d556001600e5560206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x00", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +} \ No newline at end of file diff --git a/src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d4g0v0Filler.json b/src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d4g0v0Filler.json new file mode 100644 index 00000000000..d81579be5b8 --- /dev/null +++ b/src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d4g0v0Filler.json @@ -0,0 +1,133 @@ +{ + "extCodeHashSubcallOOG_d4g0v0" : { + "_info" : { + "comment" : "create contract A in a subcall. go OOG in a subcall (revert happens) check EXTCODEHASH of A (in upper call)" + }, + "blocks" : [ + { + "blockHeaderPremine" : { + "difficulty" : "0x020000", + "gasLimit" : "0x989680", + "timestamp" : "0x03e8", + "updatePoW" : "1" + }, + "transactions" : [ + { + "data" : "0x0000000000000000000000003100000000000000000000000000000000000000", + "gasLimit" : "0x061a80", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0xe7b01581161e1c9b36882e6a70bd8bbe166090a2552248bd5771e3bf93c82186", + "s" : "0x0d487fa3fde3c4095a4af5a7c0e854d37013c45df5da342825bdba17d584deaa", + "to" : "0x1000000000000000000000000000000000000000", + "v" : "0x1b", + "value" : "0x01" + } + ], + "uncleHeaders" : [ + ] + } + ], + "expect" : [ + { + "network" : "Constantinople", + "result" : { + "0x62ae0b997c8230e321b19d06b7004f25e1ac0637" : { + }, + "0xc566c94b132ce77d6e67add86c5a74e808578876" : { + } + } + } + ], + "genesisBlockHeader" : { + "bloom" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "131072", + "extraData" : "0x42", + "gasLimit" : "0x989680", + "gasUsed" : "0", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "number" : "0", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0xf99eb1626cfa6db435c0836235942d7ccaa935f1ae247d3f1c21e495685f903a", + "timestamp" : "0x03b6", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "pre" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600060003562055730f2506000513f6001556000513b6002556020600060006000513c6000516003556000600060006000600060005161c350f2600455", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a000000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a100000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a1000000000000000000000000000000000000006203d090f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a100000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80601960003960006000f560005260206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80605f60003960006000f56000526001600155600160025560016003556001600455600160055560016006556001600755600160085560016009556001600a556001600b556001600c556001600d556001600e5560206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x00", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +} \ No newline at end of file diff --git a/src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d5g0v0Filler.json b/src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d5g0v0Filler.json new file mode 100644 index 00000000000..3846db92935 --- /dev/null +++ b/src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/extCodeHashSubcallOOG_d5g0v0Filler.json @@ -0,0 +1,133 @@ +{ + "extCodeHashSubcallOOG_d5g0v0" : { + "_info" : { + "comment" : "create contract A in a subcall. go OOG in a subcall (revert happens) check EXTCODEHASH of A (in upper call)" + }, + "blocks" : [ + { + "blockHeaderPremine" : { + "difficulty" : "0x020000", + "gasLimit" : "0x989680", + "timestamp" : "0x03e8", + "updatePoW" : "1" + }, + "transactions" : [ + { + "data" : "0x0000000000000000000000003200000000000000000000000000000000000000", + "gasLimit" : "0x061a80", + "gasPrice" : "0x01", + "nonce" : "0x00", + "r" : "0x2f1374c6e865d1e97cca681d22301535b34baab05ae5f5f96736cfbf5680510f", + "s" : "0x266e3c55b1565d5aac75e6725e7cafe6138ed86d4f53d6eefee2b25f74ad1d52", + "to" : "0x1000000000000000000000000000000000000000", + "v" : "0x1c", + "value" : "0x01" + } + ], + "uncleHeaders" : [ + ] + } + ], + "expect" : [ + { + "network" : "Constantinople", + "result" : { + "0x62ae0b997c8230e321b19d06b7004f25e1ac0637" : { + }, + "0xc566c94b132ce77d6e67add86c5a74e808578876" : { + } + } + } + ], + "genesisBlockHeader" : { + "bloom" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "131072", + "extraData" : "0x42", + "gasLimit" : "0x989680", + "gasUsed" : "0", + "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "nonce" : "0x0102030405060708", + "number" : "0", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0xf99eb1626cfa6db435c0836235942d7ccaa935f1ae247d3f1c21e495685f903a", + "timestamp" : "0x03b6", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "pre" : { + "0x1000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600060003562055730f2506000513f6001556000513b6002556020600060006000513c6000516003556000600060006000600060005161c350f2600455", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a000000000000000000000000000000000000000620249f0f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x2200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a000000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a100000000000000000000000000000000000000620249f0f15060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6020600060006000600073a1000000000000000000000000000000000000006203d090f25060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0x3200000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x602060006000600073a100000000000000000000000000000000000000620249f0f45060206000f3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa000000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80601960003960006000f560005260206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa100000000000000000000000000000000000000" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x6000600e80605f60003960006000f56000526001600155600160025560016003556001600455600160055560016006556001600755600160085560016009556001600a556001600b556001600c556001600d556001600e5560206000f300fe6460206020556000526005601bf3", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "0x00", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +} \ No newline at end of file From 94d06173305706e54cbf233f5f50204c3754d742 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Thu, 6 Dec 2018 15:13:50 +0300 Subject: [PATCH 3/3] more debug info on errors --- test.py | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/test.py b/test.py index e0a3bc24cb3..8eff1a9a8e6 100755 --- a/test.py +++ b/test.py @@ -137,15 +137,20 @@ def validateTestFile(testFile): def hashFile(fname): with open(fname ,"rb") as f: - k = sha3.keccak_256() - if fname.endswith(".json"): - s = json.dumps(json.load(f), sort_keys=True, separators=(',', ':')) - elif fname.endswith(".yml"): - s = json.dumps(yaml.load(f), sort_keys=True, separators=(',', ':')) - else: - _die("Do not know how to hash:", fname) - k.update(s.encode('utf-8')) - return k.hexdigest() + try: + k = sha3.keccak_256() + if fname.endswith(".json"): + s = json.dumps(json.load(f), sort_keys=True, separators=(',', ':')) + elif fname.endswith(".yml"): + s = json.dumps(yaml.load(f), sort_keys=True, separators=(',', ':')) + else: + _die("Do not know how to hash:", fname) + k.update(s.encode('utf-8')) + return { 'hash': k.hexdigest(), 'raw': s } + except Exception as e: + _logerror("Error getting hash of the yml/json:", fname) + _logerror("Exception: ", str(e)) + return { 'hash': 'error', 'raw': 'error' } def checkFilled(jsonFile): jsonTest = readFile(jsonFile) @@ -162,8 +167,9 @@ def checkFilled(jsonFile): if "_info" in jsonTest[test]: fillerSource = jsonTest[test]["_info"]["source"] fillerHash = jsonTest[test]["_info"]["sourceHash"] - if fillerHash != hashFile(fillerSource): - _logerror("Filler hash is different:", jsonFile) + resultHash = hashFile(fillerSource) + if fillerHash != resultHash['hash']: + _logerror("Filler hash is different:", jsonFile, " HashSrc: '", resultHash['raw'], "'") # Main # ====