Skip to content

Commit

Permalink
Merge pull request #322 from ethereum/transactionVtests
Browse files Browse the repository at this point in the history
add issue 143 test
  • Loading branch information
winsvega committed Sep 13, 2017
2 parents fe3e051 + 8bca8c4 commit 80781c6
Show file tree
Hide file tree
Showing 2 changed files with 195 additions and 0 deletions.
98 changes: 98 additions & 0 deletions GeneralStateTests/stAttackTest/CrashingTransaction.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}

0 comments on commit 80781c6

Please sign in to comment.