diff options
author | Dimitry <winsvega@mail.ru> | 2017-09-13 22:52:45 +0800 |
---|---|---|
committer | Dimitry <winsvega@mail.ru> | 2017-09-13 22:52:45 +0800 |
commit | 8bca8c493332b3cb82ea9b5ac0214028cc993988 (patch) | |
tree | d199f0f9c0ac3bbe71ed3359d836f78d6f97f1a2 | |
parent | 6f09e3c9aa172ffb00c464cd04c8a022ef6fb4dd (diff) | |
download | tangerine-tests-8bca8c493332b3cb82ea9b5ac0214028cc993988.tar tangerine-tests-8bca8c493332b3cb82ea9b5ac0214028cc993988.tar.gz tangerine-tests-8bca8c493332b3cb82ea9b5ac0214028cc993988.tar.bz2 tangerine-tests-8bca8c493332b3cb82ea9b5ac0214028cc993988.tar.lz tangerine-tests-8bca8c493332b3cb82ea9b5ac0214028cc993988.tar.xz tangerine-tests-8bca8c493332b3cb82ea9b5ac0214028cc993988.tar.zst tangerine-tests-8bca8c493332b3cb82ea9b5ac0214028cc993988.zip |
add issue 143 test
-rw-r--r-- | GeneralStateTests/stAttackTest/CrashingTransaction.json | 98 | ||||
-rw-r--r-- | src/GeneralStateTestsFiller/stAttackTest/CrashingTransactionFiller.json | 97 |
2 files changed, 195 insertions, 0 deletions
diff --git a/GeneralStateTests/stAttackTest/CrashingTransaction.json b/GeneralStateTests/stAttackTest/CrashingTransaction.json new file mode 100644 index 000000000..be5fadde9 --- /dev/null +++ b/GeneralStateTests/stAttackTest/CrashingTransaction.json @@ -0,0 +1,98 @@ +{ + "CrashingTransaction" : { + "_info" : { + "comment" : "", + "filledwith" : "cpp-1.3.0+commit.0f676bd1.Linux.g++", + "source" : "src/GeneralStateTestsFiller/stAttackTest/CrashingTransactionFiller.json" + }, + "env" : { + "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x20000", + "currentGasLimit" : "0x47e7c4", + "currentNumber" : "0x01", + "currentTimestamp" : "0x03e8", + "previousHash" : "0x5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "post" : { + "Byzantium" : [ + { + "hash" : "0xff08a9495550652210911b3534aa418c6fa298c7622f8e61a10ecf2c543115c9", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ], + "EIP150" : [ + { + "hash" : "0x6e498faaa2edfe2e824e37c272cdd81d39350ef564cc58d150eeda8566c64908", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ], + "EIP158" : [ + { + "hash" : "0xff08a9495550652210911b3534aa418c6fa298c7622f8e61a10ecf2c543115c9", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ], + "Frontier" : [ + { + "hash" : "0xfea6da844256a3168856bef275b44759a14bcc363a3b10bc9053542047039e02", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ], + "Homestead" : [ + { + "hash" : "0xf20f36cd0318c573d233d3c2977c5a93c7674e884f6e50d8d29ace15860ba59b", + "indexes" : { + "data" : 0, + "gas" : 0, + "value" : 0 + }, + "logs" : "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347" + } + ] + }, + "pre" : { + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0x0de0b6b3a7640000", + "code" : "", + "nonce" : "0x0cc6", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "0x60606040525b5b61c3505a1115602c576040516034806039833901809050604051809103906000f0506006565b5b600a80606d6000396000f360606040525b3373ffffffffffffffffffffffffffffffffffffffff16ff5b600a80602a6000396000f360606040526008565b0060606040526008565b00" + ], + "gasLimit" : [ + "0x47127a" + ], + "gasPrice" : "0x02", + "nonce" : "0x0cc6", + "secretKey" : "0x45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "", + "value" : [ + "0x01" + ] + } + } +}
\ No newline at end of file diff --git a/src/GeneralStateTestsFiller/stAttackTest/CrashingTransactionFiller.json b/src/GeneralStateTestsFiller/stAttackTest/CrashingTransactionFiller.json new file mode 100644 index 000000000..295f60c2a --- /dev/null +++ b/src/GeneralStateTestsFiller/stAttackTest/CrashingTransactionFiller.json @@ -0,0 +1,97 @@ +{ + "CrashingTransaction" : { + "_info" : { + "comment" : "https://ropsten.etherscan.io/tx/0x8ec445380649f6c75a042a438ea9256c2fab2a6a3437904c9e5a712fcbf8a54a" + }, + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x20000", + "currentGasLimit" : "4712388", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { "data" : -1, "gas" : -1, "value" : -1 }, + "network" : ["Frontier"], + "result" : { + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "nonce" : "0x0cc7" + }, + "0xecbf9aa676d9e0bbba7e517d1350c1b64f8c6779" : { + "balance" : "0x01", + "code" : "0x60606040526008565b00", + "nonce" : "143" + } + } + }, + { + "indexes" : { "data" : -1, "gas" : -1, "value" : -1 }, + "network" : ["Homestead"], + "result" : { + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "nonce" : "0x0cc7" + }, + "0xecbf9aa676d9e0bbba7e517d1350c1b64f8c6779" : { + "balance" : "0x01", + "code" : "0x60606040526008565b00", + "nonce" : "142" + } + } + }, + { + "indexes" : { "data" : -1, "gas" : -1, "value" : -1 }, + "network" : ["EIP150"], + "result" : { + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "nonce" : "0x0cc7" + }, + "0xecbf9aa676d9e0bbba7e517d1350c1b64f8c6779" : { + "balance" : "0x01", + "code" : "0x60606040526008565b00", + "nonce" : "123" + } + } + }, + { + "indexes" : { "data" : -1, "gas" : -1, "value" : -1 }, + "network" : ["EIP158", "Byzantium"], + "result" : { + "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "nonce" : "0x0cc7" + }, + "0xecbf9aa676d9e0bbba7e517d1350c1b64f8c6779" : { + "balance" : "0x01", + "code" : "0x60606040526008565b00", + "nonce" : "0x7c" + } + } + } + ], + "pre" : { + "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "1000000000000000000", + "code" : "", + "nonce" : "3270", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "0x60606040525b5b61c3505a1115602c576040516034806039833901809050604051809103906000f0506006565b5b600a80606d6000396000f360606040525b3373ffffffffffffffffffffffffffffffffffffffff16ff5b600a80602a6000396000f360606040526008565b0060606040526008565b00" + ], + "gasLimit" : [ + "4657786" + ], + "gasPrice" : "2", + "nonce" : "3270", + "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8", + "to" : "", + "value" : [ + "1" + ] + } + } +} |