diff --git a/BlockchainTests/GeneralStateTests/stCodeSizeLimit/create2InitCodeSizeLimit.json b/BlockchainTests/GeneralStateTests/stCodeSizeLimit/create2InitCodeSizeLimit.json new file mode 100644 index 00000000000..064d8c9a8d0 --- /dev/null +++ b/BlockchainTests/GeneralStateTests/stCodeSizeLimit/create2InitCodeSizeLimit.json @@ -0,0 +1,490 @@ +{ + "create2InitCodeSizeLimit_d0g0v0_London" : { + "_info" : { + "comment" : "", + "filling-rpc-server" : "evm version 1.10.16-unstable-3fa0c160-20220209", + "filling-tool-version" : "retesteth-0.2.2-testinfo+commit.1b89e144.Linux.g++", + "generatedTestHash" : "b39c04a5ae7ec363d6405d0ac16322170077fb46ce9c0d50a68f56c4f8ff7daf", + "lllcversion" : "Version: 0.5.14-develop.2021.4.29+commit.14c9d5de.Linux.clang", + "solidity" : "Version: 0.8.4-develop.2021.4.29+commit.c7e474f2.Linux.clang", + "source" : "src/GeneralStateTestsFiller/stCodeSizeLimit/create2InitCodeSizeLimitFiller.yml", + "sourceHash" : "03288132690a02c7122862c2b9192d256b1c97196e0535928487a81259d755f8" + }, + "blocks" : [ + { + "blockHeader" : { + "baseFeePerGas" : "0x0a", + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "0x020000", + "extraData" : "0x00", + "gasLimit" : "0x01312d00", + "gasUsed" : "0x0222b2", + "hash" : "0xd24bff612724663da342e3949df43e9214a3635d2568ded6b3a9c7d7547723b0", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x0000000000000000", + "number" : "0x01", + "parentHash" : "0xde7434ed2ef2d2b8b2280ce6d96c36e7f493a43af09da972011d756e22430080", + "receiptTrie" : "0xd5bc507d5b010ca02a091fd604374ce68149ed0ccf73c2d985748132b5b035fc", + "stateRoot" : "0xed3d30b2c273ddfd6a3223fa79360db33e25abfbc4063f23e47b478daee7cc44", + "timestamp" : "0x03e8", + "transactionsTrie" : "0x21ad49fa2d0d4f38142a55aad84a1be74e1f5f96dcbd5c2d2f7fa813b687bdd4", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "rlp" : "0xf90282f901faa0de7434ed2ef2d2b8b2280ce6d96c36e7f493a43af09da972011d756e22430080a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa0ed3d30b2c273ddfd6a3223fa79360db33e25abfbc4063f23e47b478daee7cc44a021ad49fa2d0d4f38142a55aad84a1be74e1f5f96dcbd5c2d2f7fa813b687bdd4a0d5bc507d5b010ca02a091fd604374ce68149ed0ccf73c2d985748132b5b035fcb901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000018401312d00830222b28203e800a000000000000000000000000000000000000000000000000000000000000000008800000000000000000af882f880800a83e4e1c094b94f5374fce5edbc8e2a8697c15331677e6ebf0b80a0000000000000000000000000000000000000000000000000000000000000c0001ba0110f52aeb16c3e91943160d2e89c416b06dc47c7484a882324c6d0d362a26cd0a0774c7a35a3503be3867e7bb56885a9056ab1b7e5bfad19b1b0a3550d49a89d6fc0", + "transactions" : [ + { + "data" : "0x000000000000000000000000000000000000000000000000000000000000c000", + "gasLimit" : "0xe4e1c0", + "gasPrice" : "0x0a", + "nonce" : "0x00", + "r" : "0x110f52aeb16c3e91943160d2e89c416b06dc47c7484a882324c6d0d362a26cd0", + "s" : "0x774c7a35a3503be3867e7bb56885a9056ab1b7e5bfad19b1b0a3550d49a89d6f", + "sender" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "to" : "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "v" : "0x1b", + "value" : "0x00" + } + ], + "uncleHeaders" : [ + ] + } + ], + "genesisBlockHeader" : { + "baseFeePerGas" : "0x0b", + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "0x020000", + "extraData" : "0x00", + "gasLimit" : "0x01312d00", + "gasUsed" : "0x00", + "hash" : "0xde7434ed2ef2d2b8b2280ce6d96c36e7f493a43af09da972011d756e22430080", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x0000000000000000", + "number" : "0x00", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0xf7f91172538b31782a255b33fb6ee64ffe63e8d1bf3252749ff68ff894b96e6d", + "timestamp" : "0x00", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "genesisRLP" : "0xf901faf901f5a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa0f7f91172538b31782a255b33fb6ee64ffe63e8d1bf3252749ff68ff894b96e6da056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000808401312d00808000a000000000000000000000000000000000000000000000000000000000000000008800000000000000000bc0c0", + "lastblockhash" : "0xd24bff612724663da342e3949df43e9214a3635d2568ded6b3a9c7d7547723b0", + "network" : "London", + "postState" : { + "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { + "balance" : "0x1bc16d674ec80000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + }, + "0x7b453b2ba212f731bec025f8f441f01547d79bfb" : { + "balance" : "0x00", + "code" : "0x600a80600080396000f3", + "nonce" : "0x01", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0bd6670c", + "code" : "0x", + "nonce" : "0x01", + "storage" : { + } + }, + "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x00", + "code" : "0x7f600a80600080396000f3000000000000000000000000000000000000000000006000526000355a60008260006000f55a8203600a55806000556001600155505050", + "nonce" : "0x01", + "storage" : { + "0x00" : "0x7b453b2ba212f731bec025f8f441f01547d79bfb", + "0x01" : "0x01", + "0x0a" : "0xccf3" + } + } + }, + "pre" : { + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0bebc200", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + }, + "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x00", + "code" : "0x7f600a80600080396000f3000000000000000000000000000000000000000000006000526000355a60008260006000f55a8203600a55806000556001600155505050", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + }, + "create2InitCodeSizeLimit_d0g0v0_London+3860" : { + "_info" : { + "comment" : "", + "filling-rpc-server" : "evm version 1.10.16-unstable-3fa0c160-20220209", + "filling-tool-version" : "retesteth-0.2.2-testinfo+commit.1b89e144.Linux.g++", + "generatedTestHash" : "fba342f6ec2de1b27f65d82415804c664945283a89dc678c2eaf88f01373bf11", + "lllcversion" : "Version: 0.5.14-develop.2021.4.29+commit.14c9d5de.Linux.clang", + "solidity" : "Version: 0.8.4-develop.2021.4.29+commit.c7e474f2.Linux.clang", + "source" : "src/GeneralStateTestsFiller/stCodeSizeLimit/create2InitCodeSizeLimitFiller.yml", + "sourceHash" : "03288132690a02c7122862c2b9192d256b1c97196e0535928487a81259d755f8" + }, + "blocks" : [ + { + "blockHeader" : { + "baseFeePerGas" : "0x0a", + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "0x020000", + "extraData" : "0x00", + "gasLimit" : "0x01312d00", + "gasUsed" : "0x022eb2", + "hash" : "0xe144d7010fae66c4d48ac34467e609318191cf5e2667444f326e68cb429dd550", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x0000000000000000", + "number" : "0x01", + "parentHash" : "0xde7434ed2ef2d2b8b2280ce6d96c36e7f493a43af09da972011d756e22430080", + "receiptTrie" : "0x695dff097c9b68b849b97283ee897dbf457f99c1b425face0401a17f29067d53", + "stateRoot" : "0xe05f5dd3e853c9c47a2278bd3444269473bf22766c87a945e470cc373c5062cf", + "timestamp" : "0x03e8", + "transactionsTrie" : "0x21ad49fa2d0d4f38142a55aad84a1be74e1f5f96dcbd5c2d2f7fa813b687bdd4", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "rlp" : "0xf90282f901faa0de7434ed2ef2d2b8b2280ce6d96c36e7f493a43af09da972011d756e22430080a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa0e05f5dd3e853c9c47a2278bd3444269473bf22766c87a945e470cc373c5062cfa021ad49fa2d0d4f38142a55aad84a1be74e1f5f96dcbd5c2d2f7fa813b687bdd4a0695dff097c9b68b849b97283ee897dbf457f99c1b425face0401a17f29067d53b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000018401312d0083022eb28203e800a000000000000000000000000000000000000000000000000000000000000000008800000000000000000af882f880800a83e4e1c094b94f5374fce5edbc8e2a8697c15331677e6ebf0b80a0000000000000000000000000000000000000000000000000000000000000c0001ba0110f52aeb16c3e91943160d2e89c416b06dc47c7484a882324c6d0d362a26cd0a0774c7a35a3503be3867e7bb56885a9056ab1b7e5bfad19b1b0a3550d49a89d6fc0", + "transactions" : [ + { + "data" : "0x000000000000000000000000000000000000000000000000000000000000c000", + "gasLimit" : "0xe4e1c0", + "gasPrice" : "0x0a", + "nonce" : "0x00", + "r" : "0x110f52aeb16c3e91943160d2e89c416b06dc47c7484a882324c6d0d362a26cd0", + "s" : "0x774c7a35a3503be3867e7bb56885a9056ab1b7e5bfad19b1b0a3550d49a89d6f", + "sender" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "to" : "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "v" : "0x1b", + "value" : "0x00" + } + ], + "uncleHeaders" : [ + ] + } + ], + "genesisBlockHeader" : { + "baseFeePerGas" : "0x0b", + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "0x020000", + "extraData" : "0x00", + "gasLimit" : "0x01312d00", + "gasUsed" : "0x00", + "hash" : "0xde7434ed2ef2d2b8b2280ce6d96c36e7f493a43af09da972011d756e22430080", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x0000000000000000", + "number" : "0x00", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0xf7f91172538b31782a255b33fb6ee64ffe63e8d1bf3252749ff68ff894b96e6d", + "timestamp" : "0x00", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "genesisRLP" : "0xf901faf901f5a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa0f7f91172538b31782a255b33fb6ee64ffe63e8d1bf3252749ff68ff894b96e6da056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000808401312d00808000a000000000000000000000000000000000000000000000000000000000000000008800000000000000000bc0c0", + "lastblockhash" : "0xe144d7010fae66c4d48ac34467e609318191cf5e2667444f326e68cb429dd550", + "network" : "London+3860", + "postState" : { + "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { + "balance" : "0x1bc16d674ec80000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + }, + "0x7b453b2ba212f731bec025f8f441f01547d79bfb" : { + "balance" : "0x00", + "code" : "0x600a80600080396000f3", + "nonce" : "0x01", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0bd5ef0c", + "code" : "0x", + "nonce" : "0x01", + "storage" : { + } + }, + "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x00", + "code" : "0x7f600a80600080396000f3000000000000000000000000000000000000000000006000526000355a60008260006000f55a8203600a55806000556001600155505050", + "nonce" : "0x01", + "storage" : { + "0x00" : "0x7b453b2ba212f731bec025f8f441f01547d79bfb", + "0x01" : "0x01", + "0x0a" : "0xd8f3" + } + } + }, + "pre" : { + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0bebc200", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + }, + "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x00", + "code" : "0x7f600a80600080396000f3000000000000000000000000000000000000000000006000526000355a60008260006000f55a8203600a55806000556001600155505050", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + }, + "create2InitCodeSizeLimit_d1g0v0_London" : { + "_info" : { + "comment" : "", + "filling-rpc-server" : "evm version 1.10.16-unstable-3fa0c160-20220209", + "filling-tool-version" : "retesteth-0.2.2-testinfo+commit.1b89e144.Linux.g++", + "generatedTestHash" : "fe99060a9cdf20297c07e322b91b246ae3aa122b87615a0144036737392a2aec", + "lllcversion" : "Version: 0.5.14-develop.2021.4.29+commit.14c9d5de.Linux.clang", + "solidity" : "Version: 0.8.4-develop.2021.4.29+commit.c7e474f2.Linux.clang", + "source" : "src/GeneralStateTestsFiller/stCodeSizeLimit/create2InitCodeSizeLimitFiller.yml", + "sourceHash" : "03288132690a02c7122862c2b9192d256b1c97196e0535928487a81259d755f8" + }, + "blocks" : [ + { + "blockHeader" : { + "baseFeePerGas" : "0x0a", + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "0x020000", + "extraData" : "0x00", + "gasLimit" : "0x01312d00", + "gasUsed" : "0x0222cd", + "hash" : "0x0d75835130268e4bcb29cc07aa084395b671f6d0608a0dbd4d5ca029ca14bc83", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x0000000000000000", + "number" : "0x01", + "parentHash" : "0xde7434ed2ef2d2b8b2280ce6d96c36e7f493a43af09da972011d756e22430080", + "receiptTrie" : "0x700fa362ea767e1333dd1a394fe22dbf85d1a8a517022988df2b948f3279513c", + "stateRoot" : "0x23104d93b9168996d20337bd15d4ab0b2fd15dd125ba6f4db9175a0594c301c8", + "timestamp" : "0x03e8", + "transactionsTrie" : "0x56be989ed075134aa66853f96e2880be22e77028f88e3df8cd67d7a01a8d286d", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "rlp" : "0xf90282f901faa0de7434ed2ef2d2b8b2280ce6d96c36e7f493a43af09da972011d756e22430080a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa023104d93b9168996d20337bd15d4ab0b2fd15dd125ba6f4db9175a0594c301c8a056be989ed075134aa66853f96e2880be22e77028f88e3df8cd67d7a01a8d286da0700fa362ea767e1333dd1a394fe22dbf85d1a8a517022988df2b948f3279513cb901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000018401312d00830222cd8203e800a000000000000000000000000000000000000000000000000000000000000000008800000000000000000af882f880800a83e4e1c094b94f5374fce5edbc8e2a8697c15331677e6ebf0b80a0000000000000000000000000000000000000000000000000000000000000c0011ca0fa5e0f7c53cba5169bd5b239b479ba8668cf69d8c06d24b00a585b995a1c2c67a056382ddd27880d6393b3f905dc75db8a0c30eeb1c9a8443ac53723ca4feba37cc0", + "transactions" : [ + { + "data" : "0x000000000000000000000000000000000000000000000000000000000000c001", + "gasLimit" : "0xe4e1c0", + "gasPrice" : "0x0a", + "nonce" : "0x00", + "r" : "0xfa5e0f7c53cba5169bd5b239b479ba8668cf69d8c06d24b00a585b995a1c2c67", + "s" : "0x56382ddd27880d6393b3f905dc75db8a0c30eeb1c9a8443ac53723ca4feba37c", + "sender" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "to" : "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "v" : "0x1c", + "value" : "0x00" + } + ], + "uncleHeaders" : [ + ] + } + ], + "genesisBlockHeader" : { + "baseFeePerGas" : "0x0b", + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "0x020000", + "extraData" : "0x00", + "gasLimit" : "0x01312d00", + "gasUsed" : "0x00", + "hash" : "0xde7434ed2ef2d2b8b2280ce6d96c36e7f493a43af09da972011d756e22430080", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x0000000000000000", + "number" : "0x00", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0xf7f91172538b31782a255b33fb6ee64ffe63e8d1bf3252749ff68ff894b96e6d", + "timestamp" : "0x00", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "genesisRLP" : "0xf901faf901f5a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa0f7f91172538b31782a255b33fb6ee64ffe63e8d1bf3252749ff68ff894b96e6da056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000808401312d00808000a000000000000000000000000000000000000000000000000000000000000000008800000000000000000bc0c0", + "lastblockhash" : "0x0d75835130268e4bcb29cc07aa084395b671f6d0608a0dbd4d5ca029ca14bc83", + "network" : "London", + "postState" : { + "0x094147686c565aa7ccac18000c3b7b4d099f92d3" : { + "balance" : "0x00", + "code" : "0x600a80600080396000f3", + "nonce" : "0x01", + "storage" : { + } + }, + "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { + "balance" : "0x1bc16d674ec80000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0bd665fe", + "code" : "0x", + "nonce" : "0x01", + "storage" : { + } + }, + "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x00", + "code" : "0x7f600a80600080396000f3000000000000000000000000000000000000000000006000526000355a60008260006000f55a8203600a55806000556001600155505050", + "nonce" : "0x01", + "storage" : { + "0x00" : "0x094147686c565aa7ccac18000c3b7b4d099f92d3", + "0x01" : "0x01", + "0x0a" : "0xcd02" + } + } + }, + "pre" : { + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0bebc200", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + }, + "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x00", + "code" : "0x7f600a80600080396000f3000000000000000000000000000000000000000000006000526000355a60008260006000f55a8203600a55806000556001600155505050", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + }, + "create2InitCodeSizeLimit_d1g0v0_London+3860" : { + "_info" : { + "comment" : "", + "filling-rpc-server" : "evm version 1.10.16-unstable-3fa0c160-20220209", + "filling-tool-version" : "retesteth-0.2.2-testinfo+commit.1b89e144.Linux.g++", + "generatedTestHash" : "b80b43d307f183515cb198e79de14a8642963c00fc397be01b7399b9f2459b0d", + "lllcversion" : "Version: 0.5.14-develop.2021.4.29+commit.14c9d5de.Linux.clang", + "solidity" : "Version: 0.8.4-develop.2021.4.29+commit.c7e474f2.Linux.clang", + "source" : "src/GeneralStateTestsFiller/stCodeSizeLimit/create2InitCodeSizeLimitFiller.yml", + "sourceHash" : "03288132690a02c7122862c2b9192d256b1c97196e0535928487a81259d755f8" + }, + "blocks" : [ + { + "blockHeader" : { + "baseFeePerGas" : "0x0a", + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "0x020000", + "extraData" : "0x00", + "gasLimit" : "0x01312d00", + "gasUsed" : "0x01d92b", + "hash" : "0xde80b0eb870f4371e0baa7b9553cadeaee2dcf9c8c25016cbf37cf1f4bf1ecb5", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x0000000000000000", + "number" : "0x01", + "parentHash" : "0xde7434ed2ef2d2b8b2280ce6d96c36e7f493a43af09da972011d756e22430080", + "receiptTrie" : "0xa0d62f24cedc7beb42d11565b3a5a279da0edae5fcc09be83b281a21423963f3", + "stateRoot" : "0x04899b42ffe19a7b5a9924010a56b058998e294079442e8c33884c954dc7bef5", + "timestamp" : "0x03e8", + "transactionsTrie" : "0x56be989ed075134aa66853f96e2880be22e77028f88e3df8cd67d7a01a8d286d", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "rlp" : "0xf90282f901faa0de7434ed2ef2d2b8b2280ce6d96c36e7f493a43af09da972011d756e22430080a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa004899b42ffe19a7b5a9924010a56b058998e294079442e8c33884c954dc7bef5a056be989ed075134aa66853f96e2880be22e77028f88e3df8cd67d7a01a8d286da0a0d62f24cedc7beb42d11565b3a5a279da0edae5fcc09be83b281a21423963f3b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000018401312d008301d92b8203e800a000000000000000000000000000000000000000000000000000000000000000008800000000000000000af882f880800a83e4e1c094b94f5374fce5edbc8e2a8697c15331677e6ebf0b80a0000000000000000000000000000000000000000000000000000000000000c0011ca0fa5e0f7c53cba5169bd5b239b479ba8668cf69d8c06d24b00a585b995a1c2c67a056382ddd27880d6393b3f905dc75db8a0c30eeb1c9a8443ac53723ca4feba37cc0", + "transactions" : [ + { + "data" : "0x000000000000000000000000000000000000000000000000000000000000c001", + "gasLimit" : "0xe4e1c0", + "gasPrice" : "0x0a", + "nonce" : "0x00", + "r" : "0xfa5e0f7c53cba5169bd5b239b479ba8668cf69d8c06d24b00a585b995a1c2c67", + "s" : "0x56382ddd27880d6393b3f905dc75db8a0c30eeb1c9a8443ac53723ca4feba37c", + "sender" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "to" : "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "v" : "0x1c", + "value" : "0x00" + } + ], + "uncleHeaders" : [ + ] + } + ], + "genesisBlockHeader" : { + "baseFeePerGas" : "0x0b", + "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "coinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "difficulty" : "0x020000", + "extraData" : "0x00", + "gasLimit" : "0x01312d00", + "gasUsed" : "0x00", + "hash" : "0xde7434ed2ef2d2b8b2280ce6d96c36e7f493a43af09da972011d756e22430080", + "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "nonce" : "0x0000000000000000", + "number" : "0x00", + "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000", + "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "stateRoot" : "0xf7f91172538b31782a255b33fb6ee64ffe63e8d1bf3252749ff68ff894b96e6d", + "timestamp" : "0x00", + "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", + "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + }, + "genesisRLP" : "0xf901faf901f5a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347942adc25665018aa1fe0e6bc666dac8fc2697ff9baa0f7f91172538b31782a255b33fb6ee64ffe63e8d1bf3252749ff68ff894b96e6da056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b901000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000083020000808401312d00808000a000000000000000000000000000000000000000000000000000000000000000008800000000000000000bc0c0", + "lastblockhash" : "0xde80b0eb870f4371e0baa7b9553cadeaee2dcf9c8c25016cbf37cf1f4bf1ecb5", + "network" : "London+3860", + "postState" : { + "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : { + "balance" : "0x1bc16d674ec80000", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + }, + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0bd94652", + "code" : "0x", + "nonce" : "0x01", + "storage" : { + } + }, + "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x00", + "code" : "0x7f600a80600080396000f3000000000000000000000000000000000000000000006000526000355a60008260006000f55a8203600a55806000556001600155505050", + "nonce" : "0x01", + "storage" : { + "0x01" : "0x01", + "0x0a" : "0xd11c" + } + } + }, + "pre" : { + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0bebc200", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + }, + "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x00", + "code" : "0x7f600a80600080396000f3000000000000000000000000000000000000000000006000526000355a60008260006000f55a8203600a55806000556001600155505050", + "nonce" : "0x00", + "storage" : { + } + } + }, + "sealEngine" : "NoProof" + } +} \ No newline at end of file diff --git a/GeneralStateTests/stCodeSizeLimit/create2InitCodeSizeLimit.json b/GeneralStateTests/stCodeSizeLimit/create2InitCodeSizeLimit.json new file mode 100644 index 00000000000..7ff1333012a --- /dev/null +++ b/GeneralStateTests/stCodeSizeLimit/create2InitCodeSizeLimit.json @@ -0,0 +1,106 @@ +{ + "create2InitCodeSizeLimit" : { + "_info" : { + "comment" : "", + "filling-rpc-server" : "evm version 1.10.16-unstable-3fa0c160-20220209", + "filling-tool-version" : "retesteth-0.2.2-testinfo+commit.1b89e144.Linux.g++", + "generatedTestHash" : "a51cbadac8ae6cca8a2cb653f38acdea71a8ac49eaa0c09a6f985cc513fdc689", + "labels" : { + "0" : "valid", + "1" : "invalid" + }, + "lllcversion" : "Version: 0.5.14-develop.2021.4.29+commit.14c9d5de.Linux.clang", + "solidity" : "Version: 0.8.4-develop.2021.4.29+commit.c7e474f2.Linux.clang", + "source" : "src/GeneralStateTestsFiller/stCodeSizeLimit/create2InitCodeSizeLimitFiller.yml", + "sourceHash" : "03288132690a02c7122862c2b9192d256b1c97196e0535928487a81259d755f8" + }, + "env" : { + "currentBaseFee" : "0x0a", + "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "0x01312d00", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "London" : [ + { + "hash" : "0x07077e96f1a4507bfe842c8aa69ae7481475d0ba98ae58f03a5045d3f7aeba17", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "txbytes" : "0xf880800a83e4e1c094b94f5374fce5edbc8e2a8697c15331677e6ebf0b80a0000000000000000000000000000000000000000000000000000000000000c0001ba0110f52aeb16c3e91943160d2e89c416b06dc47c7484a882324c6d0d362a26cd0a0774c7a35a3503be3867e7bb56885a9056ab1b7e5bfad19b1b0a3550d49a89d6f" + }, + { + "hash" : "0x9a5f13d53236209b8b425c8f0487fc8c3b981e81166ea7e6585f1fd79301f581", + "indexes" : { + "data" : 1, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "txbytes" : "0xf880800a83e4e1c094b94f5374fce5edbc8e2a8697c15331677e6ebf0b80a0000000000000000000000000000000000000000000000000000000000000c0011ca0fa5e0f7c53cba5169bd5b239b479ba8668cf69d8c06d24b00a585b995a1c2c67a056382ddd27880d6393b3f905dc75db8a0c30eeb1c9a8443ac53723ca4feba37c" + } + ], + "London+3860" : [ + { + "hash" : "0x9d42b5702d80136291ed864402dca27d70016834c90f6ecb1d4de11bf9881e72", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "txbytes" : "0xf880800a83e4e1c094b94f5374fce5edbc8e2a8697c15331677e6ebf0b80a0000000000000000000000000000000000000000000000000000000000000c0001ba0110f52aeb16c3e91943160d2e89c416b06dc47c7484a882324c6d0d362a26cd0a0774c7a35a3503be3867e7bb56885a9056ab1b7e5bfad19b1b0a3550d49a89d6f" + }, + { + "hash" : "0x20cb4b1710ede04ca4789820f9deff6f7ffb150d614707e2143608c59e67b6f2", + "indexes" : { + "data" : 1, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", + "txbytes" : "0xf880800a83e4e1c094b94f5374fce5edbc8e2a8697c15331677e6ebf0b80a0000000000000000000000000000000000000000000000000000000000000c0011ca0fa5e0f7c53cba5169bd5b239b479ba8668cf69d8c06d24b00a585b995a1c2c67a056382ddd27880d6393b3f905dc75db8a0c30eeb1c9a8443ac53723ca4feba37c" + } + ] + }, + "pre" : { + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0bebc200", + "code" : "0x", + "nonce" : "0x00", + "storage" : { + } + }, + "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x00", + "code" : "0x7f600a80600080396000f3000000000000000000000000000000000000000000006000526000355a60008260006000f55a8203600a55806000556001600155505050", + "nonce" : "0x00", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "0x000000000000000000000000000000000000000000000000000000000000c000", + "0x000000000000000000000000000000000000000000000000000000000000c001" + ], + "gasLimit" : [ + "0xe4e1c0" + ], + "gasPrice" : "0x0a", + "nonce" : "0x00", + "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "sender" : "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "to" : "0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "0x00" + ] + } + } +} \ No newline at end of file diff --git a/src/GeneralStateTestsFiller/stCodeSizeLimit/create2InitCodeSizeLimitFiller.yml b/src/GeneralStateTestsFiller/stCodeSizeLimit/create2InitCodeSizeLimitFiller.yml new file mode 100644 index 00000000000..fa1d9891aa5 --- /dev/null +++ b/src/GeneralStateTestsFiller/stCodeSizeLimit/create2InitCodeSizeLimitFiller.yml @@ -0,0 +1,128 @@ +# CREATE2 with max allowed init code size +create2InitCodeSizeLimit: + env: + currentCoinbase: 2adc25665018aa1fe0e6bc666dac8fc2697ff9ba + currentDifficulty: '0x020000' + currentGasLimit: '20000000' + currentBaseFee: '10' + currentNumber: '1' + currentTimestamp: '1000' + previousHash: 5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6 + + pre: + a94f5374fce5edbc8e2a8697c15331677e6ebf0b: + balance: 200000000 + code: '' + nonce: 0 + storage: {} + b94f5374fce5edbc8e2a8697c15331677e6ebf0b: + balance: 0 + code: | + :yul + { + // :yul { codecopy(0x00, 0x00, 0x0a) return(0x00, 0x0a) } + mstore(0, 0x600a80600080396000f300000000000000000000000000000000000000000000) + // get initcode size from calldata + let initcode_size := calldataload(0) + let gas_before := gas() + let create_result := create2(0, 0, initcode_size, 0) + sstore(10, sub(gas_before, gas())) + sstore(0, create_result) + sstore(1, 1) + } + nonce: 0 + storage: {} + + transaction: + data: + # Valid initcode size = 49152 bytes + - ':label valid :raw 0x000000000000000000000000000000000000000000000000000000000000c000' + # Invalid initcode size = 49153 bytes + - ':label invalid :raw 0x000000000000000000000000000000000000000000000000000000000000c001' + gasLimit: + - 15000000 + gasPrice: 10 + nonce: 0 + secretKey: 45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8 + to: 'b94f5374fce5edbc8e2a8697c15331677e6ebf0b' + value: + - 0 + + expect: + - indexes: + data: ':label valid' + gas: !!int -1 + value: !!int -1 + network: + - 'London' + result: + a94f5374fce5edbc8e2a8697c15331677e6ebf0b: + nonce: 1 + b94f5374fce5edbc8e2a8697c15331677e6ebf0b: + storage: + '0': '7b453b2ba212f731bec025f8f441f01547d79bfb' + '1': 1 + '10': 52467 + 7b453b2ba212f731bec025f8f441f01547d79bfb: + balance: 0 + code: '0x600a80600080396000f3' + nonce: 1 + storage: {} + + - indexes: + data: ':label invalid' + gas: !!int -1 + value: !!int -1 + network: + - 'London' + result: + a94f5374fce5edbc8e2a8697c15331677e6ebf0b: + nonce: 1 + b94f5374fce5edbc8e2a8697c15331677e6ebf0b: + storage: + '0': '094147686c565aa7ccac18000c3b7b4d099f92d3' + '1': 1 + '10': 52482 + 094147686c565aa7ccac18000c3b7b4d099f92d3: + balance: 0 + code: '0x600a80600080396000f3' + nonce: 1 + storage: {} + + - indexes: + data: ':label valid' + gas: !!int -1 + value: !!int -1 + network: + - 'London+3860' + result: + a94f5374fce5edbc8e2a8697c15331677e6ebf0b: + nonce: 1 + b94f5374fce5edbc8e2a8697c15331677e6ebf0b: + storage: + '0': '7b453b2ba212f731bec025f8f441f01547d79bfb' + '1': 1 + # Difference with London is the charge for initcode 49152 // 32 * 2 = 3072 gas + '10': 55539 + 7b453b2ba212f731bec025f8f441f01547d79bfb: + balance: 0 + code: '0x600a80600080396000f3' + nonce: 1 + storage: {} + + - indexes: + data: ':label invalid' + gas: !!int -1 + value: !!int -1 + network: + - 'London+3860' + result: + a94f5374fce5edbc8e2a8697c15331677e6ebf0b: + nonce: 1 + b94f5374fce5edbc8e2a8697c15331677e6ebf0b: + storage: + '0': 0 + '1': 1 + '10': 53532 + 094147686c565aa7ccac18000c3b7b4d099f92d3: + shouldnotexist: 1