aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitry <dimitry@ethereum.org>2018-09-14 01:43:07 +0800
committerDimitry <dimitry@ethereum.org>2018-09-14 01:43:07 +0800
commit78dbc922a4a2f0e159a20107462dbadb7967f663 (patch)
tree2e557375f06a138129bf6d0f33ea07fb12bcaa72
parent74a9838f3c30d7d7d5503e0c50d6a628e16965d1 (diff)
downloaddexon-tests-78dbc922a4a2f0e159a20107462dbadb7967f663.tar
dexon-tests-78dbc922a4a2f0e159a20107462dbadb7967f663.tar.gz
dexon-tests-78dbc922a4a2f0e159a20107462dbadb7967f663.tar.bz2
dexon-tests-78dbc922a4a2f0e159a20107462dbadb7967f663.tar.lz
dexon-tests-78dbc922a4a2f0e159a20107462dbadb7967f663.tar.xz
dexon-tests-78dbc922a4a2f0e159a20107462dbadb7967f663.tar.zst
dexon-tests-78dbc922a4a2f0e159a20107462dbadb7967f663.zip
push32 without bytes at the end
check gasUsage
-rw-r--r--BlockchainTests/GeneralStateTests/stSpecialTest/push32withoutByte_d0g0v0.json110
-rw-r--r--GeneralStateTests/stSpecialTest/push32withoutByte.json63
-rw-r--r--src/BlockchainTestsFiller/GeneralStateTests/stSpecialTest/push32withoutByte_d0g0v0Filler.json77
-rw-r--r--src/GeneralStateTestsFiller/stSpecialTest/push32withoutByteFiller.json62
4 files changed, 312 insertions, 0 deletions
diff --git a/BlockchainTests/GeneralStateTests/stSpecialTest/push32withoutByte_d0g0v0.json b/BlockchainTests/GeneralStateTests/stSpecialTest/push32withoutByte_d0g0v0.json
new file mode 100644
index 000000000..4daf8dc7a
--- /dev/null
+++ b/BlockchainTests/GeneralStateTests/stSpecialTest/push32withoutByte_d0g0v0.json
@@ -0,0 +1,110 @@
+{
+ "push32withoutByte_d0g0v0_Constantinople" : {
+ "_info" : {
+ "comment" : "push expect 32 bytes. but we have only 10 byte",
+ "filledwith" : "testeth 1.5.0.dev2-45+commit.0189490f.dirty",
+ "lllcversion" : "Version: 0.4.25-develop.2018.8.9+commit.63d071d6.mod.Linux.g++",
+ "source" : "src/BlockchainTestsFiller/GeneralStateTests/stSpecialTest/push32withoutByte_d0g0v0Filler.json",
+ "sourceHash" : "7630c42f37f4a72354142a7c49f9fa942c0fcc18cc031e5efe7a12c4f0858ff8"
+ },
+ "blocks" : [
+ {
+ "blockHeader" : {
+ "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "coinbase" : "0x68795c4aa09d6f4ed3e5deddf8c2ad3049a601da",
+ "difficulty" : "0x020000",
+ "extraData" : "",
+ "gasLimit" : "0x2fefd8",
+ "gasUsed" : "0x520b",
+ "hash" : "0x5a1f1b0e8b370b048509e77a8cd1f9374174c7a4208e92eb2d17c19fac6494bb",
+ "mixHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "nonce" : "0x0000000000000000",
+ "number" : "0x01",
+ "parentHash" : "0x1f8316b896f17ebac56fc8964c1985a7a2dff3cfd9c99f3a38047f2d3530a7f7",
+ "receiptTrie" : "0xf951f9396af203499cc7d379715a9110323de73967c5700e2f424725446a3c76",
+ "stateRoot" : "0x87d3b33c85e42a144b5445a6ea582675d31cfaea417f0fa74df0bd1e370c9426",
+ "timestamp" : "0x03e8",
+ "transactionsTrie" : "0x4c634f32aa14e92f2c3fb89ac7c91d56610f36826e78022ec5aaf1bf86f6ea2a",
+ "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ "rlp" : "0xf9025ff901f7a01f8316b896f17ebac56fc8964c1985a7a2dff3cfd9c99f3a38047f2d3530a7f7a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d493479468795c4aa09d6f4ed3e5deddf8c2ad3049a601daa087d3b33c85e42a144b5445a6ea582675d31cfaea417f0fa74df0bd1e370c9426a04c634f32aa14e92f2c3fb89ac7c91d56610f36826e78022ec5aaf1bf86f6ea2aa0f951f9396af203499cc7d379715a9110323de73967c5700e2f424725446a3c76b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000001832fefd882520b8203e880a00000000000000000000000000000000000000000000000000000000000000000880000000000000000f862f86001018307a120940dc02922f33e45537411b9f92a1dcc9750ba993280801ba0932e278b5beb5e3451006c170ac478c8e04566268f0aaa1be1f2ccd95f3c2ff3a0415b798d20c83f196f18ea39ab8e81371254b309915bf33cd361a943c04e7250c0",
+ "transactions" : [
+ {
+ "data" : "0x",
+ "gasLimit" : "0x07a120",
+ "gasPrice" : "0x01",
+ "nonce" : "0x01",
+ "r" : "0x932e278b5beb5e3451006c170ac478c8e04566268f0aaa1be1f2ccd95f3c2ff3",
+ "s" : "0x415b798d20c83f196f18ea39ab8e81371254b309915bf33cd361a943c04e7250",
+ "to" : "0x0dc02922f33e45537411b9f92a1dcc9750ba9932",
+ "v" : "0x1b",
+ "value" : "0x00"
+ }
+ ],
+ "uncleHeaders" : [
+ ]
+ }
+ ],
+ "genesisBlockHeader" : {
+ "bloom" : "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "coinbase" : "0x68795c4aa09d6f4ed3e5deddf8c2ad3049a601da",
+ "difficulty" : "0x020000",
+ "extraData" : "0x42",
+ "gasLimit" : "0x2fefd8",
+ "gasUsed" : "0x00",
+ "hash" : "0x1f8316b896f17ebac56fc8964c1985a7a2dff3cfd9c99f3a38047f2d3530a7f7",
+ "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "nonce" : "0x0102030405060708",
+ "number" : "0x00",
+ "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "stateRoot" : "0xf27e966e246ddaeb8822b8e9238dcf32157f710b15ee3ed4e4200090c7751a54",
+ "timestamp" : "0x03b6",
+ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ "genesisRLP" : "0xf901faf901f5a00000000000000000000000000000000000000000000000000000000000000000a01dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d493479468795c4aa09d6f4ed3e5deddf8c2ad3049a601daa0f27e966e246ddaeb8822b8e9238dcf32157f710b15ee3ed4e4200090c7751a54a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421b90100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008302000080832fefd8808203b642a056e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421880102030405060708c0c0",
+ "lastblockhash" : "0x5a1f1b0e8b370b048509e77a8cd1f9374174c7a4208e92eb2d17c19fac6494bb",
+ "network" : "Constantinople",
+ "postState" : {
+ "0x0dc02922f33e45537411b9f92a1dcc9750ba9932" : {
+ "balance" : "0x00",
+ "code" : "0x7f11223344556677889910",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0x68795c4aa09d6f4ed3e5deddf8c2ad3049a601da" : {
+ "balance" : "0x1bc16d674ec8520b",
+ "code" : "",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x0de0b6b3a763adf5",
+ "code" : "",
+ "nonce" : "0x02",
+ "storage" : {
+ }
+ }
+ },
+ "pre" : {
+ "0x0dc02922f33e45537411b9f92a1dcc9750ba9932" : {
+ "balance" : "0x00",
+ "code" : "0x7f11223344556677889910",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "",
+ "nonce" : "0x01",
+ "storage" : {
+ }
+ }
+ },
+ "sealEngine" : "NoProof"
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stSpecialTest/push32withoutByte.json b/GeneralStateTests/stSpecialTest/push32withoutByte.json
new file mode 100644
index 000000000..fb07ddc1a
--- /dev/null
+++ b/GeneralStateTests/stSpecialTest/push32withoutByte.json
@@ -0,0 +1,63 @@
+{
+ "push32withoutByte" : {
+ "_info" : {
+ "comment" : "push expect 32 bytes. but we have only 10 byte",
+ "filledwith" : "testeth 1.5.0.dev2-45+commit.0189490f.dirty",
+ "lllcversion" : "Version: 0.4.25-develop.2018.8.9+commit.63d071d6.mod.Linux.g++",
+ "source" : "src/GeneralStateTestsFiller/stSpecialTest/push32withoutByteFiller.json",
+ "sourceHash" : "470b7f71e74e5a3585ce9a8a5972017feb87ab3f2aee00874907e602e3a37847"
+ },
+ "env" : {
+ "currentCoinbase" : "0x68795C4AA09D6f4Ed3E5DeDDf8c2AD3049A601da",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "0x2fefd8",
+ "currentNumber" : "0x01",
+ "currentTimestamp" : "0x03e8",
+ "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "Constantinople" : [
+ {
+ "hash" : "0x2b00b2a1abae901c353787d712f6971e95799968838044e7f0157fc55e0384cc",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ },
+ "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ }
+ ]
+ },
+ "pre" : {
+ "0x0dc02922f33e45537411b9f92a1dcc9750ba9932" : {
+ "balance" : "0x00",
+ "code" : "0x7f11223344556677889910",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "",
+ "nonce" : "0x01",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ "0x"
+ ],
+ "gasLimit" : [
+ "0x07a120"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x01",
+ "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "0x0dc02922f33e45537411b9f92a1dcc9750ba9932",
+ "value" : [
+ "0x00"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/src/BlockchainTestsFiller/GeneralStateTests/stSpecialTest/push32withoutByte_d0g0v0Filler.json b/src/BlockchainTestsFiller/GeneralStateTests/stSpecialTest/push32withoutByte_d0g0v0Filler.json
new file mode 100644
index 000000000..aca360f59
--- /dev/null
+++ b/src/BlockchainTestsFiller/GeneralStateTests/stSpecialTest/push32withoutByte_d0g0v0Filler.json
@@ -0,0 +1,77 @@
+{
+ "push32withoutByte_d0g0v0" : {
+ "_info" : {
+ "comment" : "push expect 32 bytes. but we have only 10 byte"
+ },
+ "blocks" : [
+ {
+ "blockHeaderPremine" : {
+ "difficulty" : "0x020000",
+ "gasLimit" : "0x2fefd8",
+ "timestamp" : "0x03e8",
+ "updatePoW" : "1"
+ },
+ "transactions" : [
+ {
+ "data" : "0x",
+ "gasLimit" : "0x07a120",
+ "gasPrice" : "0x01",
+ "nonce" : "0x01",
+ "r" : "0x932e278b5beb5e3451006c170ac478c8e04566268f0aaa1be1f2ccd95f3c2ff3",
+ "s" : "0x415b798d20c83f196f18ea39ab8e81371254b309915bf33cd361a943c04e7250",
+ "to" : "0x0dc02922f33e45537411b9f92a1dcc9750ba9932",
+ "v" : "0x1b",
+ "value" : "0x00"
+ }
+ ],
+ "uncleHeaders" : [
+ ]
+ }
+ ],
+ "expect" : [
+ {
+ "network" : "Constantinople",
+ "result" : {
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x0de0b6b3a763adf5",
+ "nonce" : "0x02"
+ }
+ }
+ }
+ ],
+ "genesisBlockHeader" : {
+ "bloom" : "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
+ "coinbase" : "68795c4aa09d6f4ed3e5deddf8c2ad3049a601da",
+ "difficulty" : "131072",
+ "extraData" : "0x42",
+ "gasLimit" : "0x2fefd8",
+ "gasUsed" : "0",
+ "mixHash" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "nonce" : "0x0102030405060708",
+ "number" : "0",
+ "parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
+ "receiptTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "stateRoot" : "0xf99eb1626cfa6db435c0836235942d7ccaa935f1ae247d3f1c21e495685f903a",
+ "timestamp" : "0x03b6",
+ "transactionsTrie" : "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
+ "uncleHash" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
+ },
+ "pre" : {
+ "0x0dc02922f33e45537411b9f92a1dcc9750ba9932" : {
+ "balance" : "0x00",
+ "code" : "0x7f11223344556677889910",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "",
+ "nonce" : "0x01",
+ "storage" : {
+ }
+ }
+ },
+ "sealEngine" : "NoProof"
+ }
+} \ No newline at end of file
diff --git a/src/GeneralStateTestsFiller/stSpecialTest/push32withoutByteFiller.json b/src/GeneralStateTestsFiller/stSpecialTest/push32withoutByteFiller.json
new file mode 100644
index 000000000..62284f0e5
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stSpecialTest/push32withoutByteFiller.json
@@ -0,0 +1,62 @@
+{
+ "push32withoutByte" : {
+ "_info" : {
+ "comment" : "push expect 32 bytes. but we have only 10 byte"
+ },
+ "env" : {
+ "currentCoinbase" : "68795C4AA09D6f4Ed3E5DeDDf8c2AD3049A601da",
+ "currentDifficulty" : "0x020000",
+ "currentGasLimit" : "3141592",
+ "currentNumber" : "1",
+ "currentTimestamp" : "1000",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "expect" : [
+ {
+ "indexes" : {
+ "data" : -1,
+ "gas" : -1,
+ "value" : -1
+ },
+ "network" : [">=Constantinople"],
+ "result" : {
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "999999999999978997",
+ "nonce" : "2"
+ }
+ }
+ }
+ ],
+ "pre" : {
+ "0dc02922f33e45537411b9f92a1dcc9750ba9932" : {
+ "balance" : "0",
+ "code" : "0x7f11223344556677889910",
+ "nonce" : "0",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "1000000000000000000",
+ "code" : "",
+ "nonce" : "1",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ ""
+ ],
+ "gasLimit" : [
+ "500000"
+ ],
+ "gasPrice" : "1",
+ "nonce" : "1",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "0dc02922f33e45537411b9f92a1dcc9750ba9932",
+ "value" : [
+ "0"
+ ]
+ }
+ }
+}