diff options
author | Dimitry <dimitry@ethereum.org> | 2018-09-14 01:43:07 +0800 |
---|---|---|
committer | Dimitry <dimitry@ethereum.org> | 2018-09-14 01:43:07 +0800 |
commit | 78dbc922a4a2f0e159a20107462dbadb7967f663 (patch) | |
tree | 2e557375f06a138129bf6d0f33ea07fb12bcaa72 /src | |
parent | 74a9838f3c30d7d7d5503e0c50d6a628e16965d1 (diff) | |
download | dexon-tests-78dbc922a4a2f0e159a20107462dbadb7967f663.tar.gz dexon-tests-78dbc922a4a2f0e159a20107462dbadb7967f663.tar.zst dexon-tests-78dbc922a4a2f0e159a20107462dbadb7967f663.zip |
push32 without bytes at the end
check gasUsage
Diffstat (limited to 'src')
-rw-r--r-- | src/BlockchainTestsFiller/GeneralStateTests/stSpecialTest/push32withoutByte_d0g0v0Filler.json | 77 | ||||
-rw-r--r-- | src/GeneralStateTestsFiller/stSpecialTest/push32withoutByteFiller.json | 62 |
2 files changed, 139 insertions, 0 deletions
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" + ] + } + } +} |