Skip to content

Commit

Permalink
Merge pull request #569 from ethereum/moreextcodehash
Browse files Browse the repository at this point in the history
extcodecopy/hash of zero size
  • Loading branch information
winsvega committed Dec 13, 2018
2 parents 3c239e6 + 11652e3 commit debd167
Show file tree
Hide file tree
Showing 4 changed files with 482 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
{
"codeCopyZero_d0g0v0_Constantinople" : {
"_info" : {
"comment" : "https://github.com/ethereum/tests/issues/493, CODECOPY and EXTCODECOPY where codesize = 0",
"filledwith" : "testeth 1.5.0-alpha.7-7+commit.ec388602",
"lllcversion" : "Version: 0.5.0-develop.2018.11.9+commit.9709dfe0.Linux.g++",
"source" : "src/BlockchainTestsFiller/GeneralStateTests/stExtCodeHash/codeCopyZero_d0g0v0Filler.json",
"sourceHash" : "dee3dec78db90bc1a637212d9df5fd71fedd2d90cd500066e44083e84a1f2071"
},
"blocks" : [
{
"blockHeader" : {
"bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"difficulty" : "0x020000",
"extraData" : "",
"gasLimit" : "0x989680",
"gasUsed" : "0x03286e",
"hash" : "0xb1372470c910e5e80cc7baefa4368620c5dcd2b24f517df060a741b4dc961788",
"mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"nonce" : "0x0000000000000000",
"number" : "0x01",
"parentHash" : "0xd9d0196d86ecce4798a95f332f5c87b2c4e1ed9eac02e2396723b0a5493e8aa9",
"receiptTrie" : "0x77c91ec4faba5fb7b0991faa3602d7057d927c371a7f4e2ed6e0976647e97716",
"stateRoot" : "0xa13cdf7dbc80b92a28efbd335da7a62112d4fa0fd6489addd600570d4f8fd16a",
"timestamp" : "0x03e8",
"transactionsTrie" : "0x63f918f4c10ef217c29655216cc6d1e3e1361e25ce60384173212693965664b0",
"uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
"rlp" : "0xf90260f901f8a0d9d0196d86ecce4798a95f332f5c87b2c4e1ed9eac02e2396723b0a5493e8aa9a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa0a13cdf7dbc80b92a28efbd335da7a62112d4fa0fd6489addd600570d4f8fd16aa063f918f4c10ef217c29655216cc6d1e3e1361e25ce60384173212693965664b0a077c91ec4faba5fb7b0991faa3602d7057d927c371a7f4e2ed6e0976647e97716b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000001839896808303286e8203e880a00000000000000000000000000000000000000000000000000000000000000000880000000000000000f862f860800183155cc094a00000000000000000000000000000000000000001801ca07ddc7347a8189bfa10ae01da00fb656711d84bfd825821c173341786917403d8a0633658eaf844aae185c3c551c6bc4fb3691c84f62d775dcfc36d92ff66e07621c0",
"transactions" : [
{
"data" : "0x",
"gasLimit" : "0x155cc0",
"gasPrice" : "0x01",
"nonce" : "0x00",
"r" : "0x7ddc7347a8189bfa10ae01da00fb656711d84bfd825821c173341786917403d8",
"s" : "0x633658eaf844aae185c3c551c6bc4fb3691c84f62d775dcfc36d92ff66e07621",
"to" : "0xa000000000000000000000000000000000000000",
"v" : "0x1c",
"value" : "0x01"
}
],
"uncleHeaders" : [
]
}
],
"genesisBlockHeader" : {
"bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"difficulty" : "0x020000",
"extraData" : "0x42",
"gasLimit" : "0x989680",
"gasUsed" : "0x00",
"hash" : "0xd9d0196d86ecce4798a95f332f5c87b2c4e1ed9eac02e2396723b0a5493e8aa9",
"mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"nonce" : "0x0102030405060708",
"number" : "0x00",
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"stateRoot" : "0xe7b0ca43f62278c573ffc34516beb13816dc1d4ea015b05303b6da2f9be2afb4",
"timestamp" : "0x03b6",
"transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
"uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
},
"genesisRLP" : "0xf901faf901f5a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa0e7b0ca43f62278c573ffc34516beb13816dc1d4ea015b05303b6da2f9be2afb4a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b9010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000830200008083989680808203b642a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421880102030405060708c0c0",
"lastblockhash" : "0xb1372470c910e5e80cc7baefa4368620c5dcd2b24f517df060a741b4dc961788",
"network" : "Constantinople",
"postState" : {
"0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : {
"balance" : "0x1bc16d674ecb286e",
"code" : "",
"nonce" : "0x00",
"storage" : {
}
},
"0xa000000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640001",
"code" : "0x60206000600073a2220000000000000000000000000000000000003c60005160105573a2220000000000000000000000000000000000003b60115573a2220000000000000000000000000000000000003f6012556000600060006000600073a22200000000000000000000000000000000000061c350f260135560206000600073a2000000000000000000000000000000000000003c60005160205573a2000000000000000000000000000000000000003b60215573a2000000000000000000000000000000000000003f6022556000600060006000600073a20000000000000000000000000000000000000061c350f260235560206000600073a3000000000000000000000000000000000000003c60005160305573a3000000000000000000000000000000000000003b60315573a3000000000000000000000000000000000000003f6032556000600060006000600073a30000000000000000000000000000000000000061c350f26033556020600060006000600073a10000000000000000000000000000000000000062086470f150600051604055",
"nonce" : "0x00",
"storage" : {
"0x13" : "0x01",
"0x22" : "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"0x23" : "0x01",
"0x33" : "0x01",
"0x40" : "0xfa5deaac2b604cc50aefee7a3767b6fcfc95732f"
}
},
"0xa100000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x6000603880601960003960006000f560005260206000f300fe60206000600039600051605055303b605155303f605255600060006000600060003061c350f23b605355602060006000303c600051605455",
"nonce" : "0x01",
"storage" : {
}
},
"0xa200000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "",
"nonce" : "0x00",
"storage" : {
}
},
"0xa300000000000000000000000000000000000000" : {
"balance" : "0x00",
"code" : "",
"nonce" : "0x00",
"storage" : {
}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x0de0b6b3a760d791",
"code" : "0x00",
"nonce" : "0x01",
"storage" : {
}
},
"0xfa5deaac2b604cc50aefee7a3767b6fcfc95732f" : {
"balance" : "0x00",
"code" : "",
"nonce" : "0x01",
"storage" : {
"0x50" : "0x60206000600039600051605055303b605155303f605255600060006000600060",
"0x52" : "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"
}
}
},
"pre" : {
"0xa000000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x60206000600073a2220000000000000000000000000000000000003c60005160105573a2220000000000000000000000000000000000003b60115573a2220000000000000000000000000000000000003f6012556000600060006000600073a22200000000000000000000000000000000000061c350f260135560206000600073a2000000000000000000000000000000000000003c60005160205573a2000000000000000000000000000000000000003b60215573a2000000000000000000000000000000000000003f6022556000600060006000600073a20000000000000000000000000000000000000061c350f260235560206000600073a3000000000000000000000000000000000000003c60005160305573a3000000000000000000000000000000000000003b60315573a3000000000000000000000000000000000000003f6032556000600060006000600073a30000000000000000000000000000000000000061c350f26033556020600060006000600073a10000000000000000000000000000000000000062086470f150600051604055",
"nonce" : "0x00",
"storage" : {
}
},
"0xa100000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x6000603880601960003960006000f560005260206000f300fe60206000600039600051605055303b605155303f605255600060006000600060003061c350f23b605355602060006000303c600051605455",
"nonce" : "0x00",
"storage" : {
}
},
"0xa200000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "",
"nonce" : "0x00",
"storage" : {
}
},
"0xa300000000000000000000000000000000000000" : {
"balance" : "0x00",
"code" : "",
"nonce" : "0x00",
"storage" : {
}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x00",
"nonce" : "0x00",
"storage" : {
}
}
},
"sealEngine" : "NoProof"
}
}
84 changes: 84 additions & 0 deletions GeneralStateTests/stExtCodeHash/codeCopyZero.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
{
"codeCopyZero" : {
"_info" : {
"comment" : "https://github.com/ethereum/tests/issues/493, CODECOPY and EXTCODECOPY where codesize = 0",
"filledwith" : "testeth 1.5.0-alpha.7-7+commit.ec388602",
"lllcversion" : "Version: 0.5.0-develop.2018.11.9+commit.9709dfe0.Linux.g++",
"source" : "src/GeneralStateTestsFiller/stExtCodeHash/codeCopyZeroFiller.yml",
"sourceHash" : "1c859b898da36f3f537f360dc8f5c47a5074aa898241e34f734cec7afab2ad8d"
},
"env" : {
"currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
"currentDifficulty" : "0x20000",
"currentGasLimit" : "0x989680",
"currentNumber" : "0x01",
"currentTimestamp" : "0x03e8",
"previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
},
"post" : {
"Constantinople" : [
{
"hash" : "0xe9b5da16ddb2a502597ac1e82498d0262f757d0d0dc6e85d745cdef42f2d1be6",
"indexes" : {
"data" : 0,
"gas" : 0,
"value" : 0
},
"logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
}
]
},
"pre" : {
"0xa000000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x60206000600073a2220000000000000000000000000000000000003c60005160105573a2220000000000000000000000000000000000003b60115573a2220000000000000000000000000000000000003f6012556000600060006000600073a22200000000000000000000000000000000000061c350f260135560206000600073a2000000000000000000000000000000000000003c60005160205573a2000000000000000000000000000000000000003b60215573a2000000000000000000000000000000000000003f6022556000600060006000600073a20000000000000000000000000000000000000061c350f260235560206000600073a3000000000000000000000000000000000000003c60005160305573a3000000000000000000000000000000000000003b60315573a3000000000000000000000000000000000000003f6032556000600060006000600073a30000000000000000000000000000000000000061c350f26033556020600060006000600073a10000000000000000000000000000000000000062086470f150600051604055",
"nonce" : "0x00",
"storage" : {
}
},
"0xa100000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x6000603880601960003960006000f560005260206000f300fe60206000600039600051605055303b605155303f605255600060006000600060003061c350f23b605355602060006000303c600051605455",
"nonce" : "0x00",
"storage" : {
}
},
"0xa200000000000000000000000000000000000000" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "",
"nonce" : "0x00",
"storage" : {
}
},
"0xa300000000000000000000000000000000000000" : {
"balance" : "0x00",
"code" : "",
"nonce" : "0x00",
"storage" : {
}
},
"0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
"balance" : "0x0de0b6b3a7640000",
"code" : "0x00",
"nonce" : "0x00",
"storage" : {
}
}
},
"transaction" : {
"data" : [
"0x"
],
"gasLimit" : [
"0x155cc0"
],
"gasPrice" : "0x01",
"nonce" : "0x00",
"secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
"to" : "0xa000000000000000000000000000000000000000",
"value" : [
"0x01"
]
}
}
}

0 comments on commit debd167

Please sign in to comment.