diff options
author | Dimitry <dimitry@ethdev.com> | 2017-04-11 16:56:07 +0800 |
---|---|---|
committer | Dimitry <dimitry@ethdev.com> | 2017-04-11 16:56:07 +0800 |
commit | ef191fdc61cf76cdb9cdc147465fb447304b0ed2 (patch) | |
tree | 86681bd6eac32067d5294a8b7dd7a94e43a04f90 /src | |
parent | 2724b84dc8b9a74c2983a837e9c7ed3c50502aa7 (diff) | |
parent | 784eacb609e6c7754e034706ddaa4957dc45d054 (diff) | |
download | tangerine-tests-ef191fdc61cf76cdb9cdc147465fb447304b0ed2.tar tangerine-tests-ef191fdc61cf76cdb9cdc147465fb447304b0ed2.tar.gz tangerine-tests-ef191fdc61cf76cdb9cdc147465fb447304b0ed2.tar.bz2 tangerine-tests-ef191fdc61cf76cdb9cdc147465fb447304b0ed2.tar.lz tangerine-tests-ef191fdc61cf76cdb9cdc147465fb447304b0ed2.tar.xz tangerine-tests-ef191fdc61cf76cdb9cdc147465fb447304b0ed2.tar.zst tangerine-tests-ef191fdc61cf76cdb9cdc147465fb447304b0ed2.zip |
Merge branch 'zeroTransaction' into develop
Diffstat (limited to 'src')
10 files changed, 1375 insertions, 94 deletions
diff --git a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransacrionCreateFiller.json b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransacrionCreateFiller.json new file mode 100644 index 000000000..08b3fc53f --- /dev/null +++ b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransacrionCreateFiller.json @@ -0,0 +1,105 @@ +{ + "zeroSigTransacrionCreate" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "10000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier", "Homestead", "EIP158", "EIP150"], + "result" : { + "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { + "shouldnotexist" : "1" + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : [1], + "gas" : -1, + "value" : -1 + }, + "network" : ["Metropolis"], + "result" : { + "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { + "shouldnotexist" : "1" + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : [0], + "gas" : [1,2], + "value" : -1 + }, + "network" : ["Metropolis"], + "result" : { + "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { + "shouldnotexist" : "1" + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : [0], + "gas" : [0,3], + "value" : -1 + }, + "network" : ["Metropolis"], + "result" : { + "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { + "balance" : "0x00", + "nonce" : "0x01" + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + } + ], + "pre" : { + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "", "0x1122334455667788990011223344556677889910" + ], + "gasLimit" : [ + "60000", "20000", "21000", "121000" + ], + "gasPrice" : "0", + "nonce" : "0", + "v" : "1", + "r" : "0", + "s" : "0", + "to" : "", + "value" : [ + "0" + ] + } + } +} diff --git a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransacrionCreatePrice0Filler.json b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransacrionCreatePrice0Filler.json new file mode 100644 index 000000000..189fead65 --- /dev/null +++ b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransacrionCreatePrice0Filler.json @@ -0,0 +1,105 @@ +{ + "zeroSigTransacrionCreatePrice0" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "10000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier", "Homestead", "EIP158", "EIP150"], + "result" : { + "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { + "shouldnotexist" : "1" + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : [1], + "gas" : -1, + "value" : -1 + }, + "network" : ["Metropolis"], + "result" : { + "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { + "shouldnotexist" : "1" + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : [0], + "gas" : [1,2], + "value" : -1 + }, + "network" : ["Metropolis"], + "result" : { + "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { + "shouldnotexist" : "1" + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : [0], + "gas" : [0,3], + "value" : -1 + }, + "network" : ["Metropolis"], + "result" : { + "b318d82866cd9f7d7a55dbbf0a80f787b72bf97c" : { + "balance" : "0x00", + "nonce" : "0x01" + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + } + ], + "pre" : { + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "", "0x1122334455667788990011223344556677889910" + ], + "gasLimit" : [ + "60000", "20000", "21000", "121000" + ], + "gasPrice" : "0", + "nonce" : "0", + "v" : "1", + "r" : "0", + "s" : "0", + "to" : "", + "value" : [ + "0" + ] + } + } +} diff --git a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransaction0PriceFiller.json b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransaction0PriceFiller.json new file mode 100644 index 000000000..dec145b7b --- /dev/null +++ b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransaction0PriceFiller.json @@ -0,0 +1,119 @@ +{ + "zeroSigTransaction0Price" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "10000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : [1,2], + "value" : -1 + }, + "network" : ["ALL"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier", "Homestead", "EIP150", "EIP158"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : [0,3], + "value" : 0 + }, + "network" : ["Metropolis"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x01" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : [0,3], + "value" : 1 + }, + "network" : ["Metropolis"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + } + ], + "pre" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0", + "code" : "{ [[0]] 1 }", + "nonce" : "0", + "storage" : { + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "", "0x1122334455667788990011223344556677889910" + ], + "gasLimit" : [ + "60000", "20000", "21000", "121000" + ], + "gasPrice" : "0", + "nonce" : "0", + "v" : "1", + "r" : "0", + "s" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "0", "1" + ] + } + } +} diff --git a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionFiller.json b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionFiller.json new file mode 100644 index 000000000..58ac55dd5 --- /dev/null +++ b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionFiller.json @@ -0,0 +1,119 @@ +{ + "zeroSigTransaction" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "10000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : [1,2], + "value" : -1 + }, + "network" : ["ALL"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier", "Homestead", "EIP150", "EIP158"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : [0,3], + "value" : 0 + }, + "network" : ["Metropolis"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x01" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : [0], + "value" : 1 + }, + "network" : ["Metropolis"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + } + ], + "pre" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0", + "code" : "{ [[0]] 1 }", + "nonce" : "0", + "storage" : { + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "", "0x1122334455667788990011223344556677889910" + ], + "gasLimit" : [ + "60000", "20000", "21000", "121000" + ], + "gasPrice" : "0", + "nonce" : "0", + "v" : "1", + "r" : "0", + "s" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "0", "1" + ] + } + } +} diff --git a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvChainIDFiller.json b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvChainIDFiller.json new file mode 100644 index 000000000..6211d4b87 --- /dev/null +++ b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvChainIDFiller.json @@ -0,0 +1,65 @@ +{ + "zeroSigTransactionInvChainID" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "10000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["ALL"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + } + ], + "pre" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0", + "code" : "{ [[0]] 1 }", + "nonce" : "0", + "storage" : { + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "", "0x1122334455667788990011223344556677889910" + ], + "gasLimit" : [ + "60000", "21000", "121000" + ], + "gasPrice" : "0", + "nonce" : "0", + "v" : "0", + "r" : "0", + "s" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "0", "1" + ] + } + } +} diff --git a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvNonce2Filler.json b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvNonce2Filler.json new file mode 100644 index 000000000..586da08b8 --- /dev/null +++ b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvNonce2Filler.json @@ -0,0 +1,83 @@ +{ + "zeroSigTransactionInvNonce2" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "10000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier", "Homestead", "EIP158", "EIP150"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "1" + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Metropolis"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "1" + } + } + } + ], + "pre" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0", + "code" : "{ [[0]] 1 }", + "nonce" : "0", + "storage" : { + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "1", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "", "0x1122334455667788990011223344556677889910" + ], + "gasLimit" : [ + "60000", "21000", "121000" + ], + "gasPrice" : "0", + "nonce" : "1", + "v" : "1", + "r" : "0", + "s" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "0", "1" + ] + } + } +} diff --git a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvNonceFiller.json b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvNonceFiller.json new file mode 100644 index 000000000..105e1c3b0 --- /dev/null +++ b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionInvNonceFiller.json @@ -0,0 +1,83 @@ +{ + "zeroSigTransactionInvNonce" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "10000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Frontier", "Homestead", "EIP158", "EIP150"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : -1, + "value" : -1 + }, + "network" : ["Metropolis"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + } + ], + "pre" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0", + "code" : "{ [[0]] 1 }", + "nonce" : "0", + "storage" : { + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "100000", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "", "0x1122334455667788990011223344556677889910" + ], + "gasLimit" : [ + "60000", "21000", "121000" + ], + "gasPrice" : "0", + "nonce" : "10", + "v" : "1", + "r" : "0", + "s" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "0", "1" + ] + } + } +} diff --git a/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionOOGFiller.json b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionOOGFiller.json new file mode 100644 index 000000000..3e74db2f7 --- /dev/null +++ b/src/GeneralStateTestsFiller/stTransactionTest/zeroSigTransactionOOGFiller.json @@ -0,0 +1,83 @@ +{ + "zeroSigTransactionOOG" : { + "env" : { + "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba", + "currentDifficulty" : "0x020000", + "currentGasLimit" : "10000000", + "currentNumber" : "1", + "currentTimestamp" : "1000", + "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6" + }, + "expect" : [ + { + "indexes" : { + "data" : -1, + "gas" : [1,2], + "value" : -1 + }, + "network" : ["ALL"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x00" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + }, + { + "indexes" : { + "data" : -1, + "gas" : [3,0], + "value" : 0 + }, + "network" : ["Metropolis"], + "result" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "storage" : { + "0x00" : "0x01" + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "nonce" : "0" + } + } + } + ], + "pre" : { + "b94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { + "balance" : "0", + "code" : "{ [[0]] 1 }", + "nonce" : "0", + "storage" : { + } + }, + "ffffffffffffffffffffffffffffffffffffffff" : { + "balance" : "0", + "code" : "", + "nonce" : "0", + "storage" : { + } + } + }, + "transaction" : { + "data" : [ + "", "0x1122334455667788990011223344556677889910" + ], + "gasLimit" : [ + "60000", "20000", "21000", "121000" + ], + "gasPrice" : "0", + "nonce" : "0", + "v" : "1", + "r" : "0", + "s" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : [ + "0", "1" + ] + } + } +} diff --git a/src/TransactionTestsFiller/Metropolis/ttMetropolisTestFiller.json b/src/TransactionTestsFiller/Metropolis/ttMetropolisTestFiller.json index df1f31e50..1054a53a3 100644 --- a/src/TransactionTestsFiller/Metropolis/ttMetropolisTestFiller.json +++ b/src/TransactionTestsFiller/Metropolis/ttMetropolisTestFiller.json @@ -170,8 +170,26 @@ } }, + "ZeroSigTransaction_gnv" : { + "expect" : "invalid", + "blocknumber" : "3000000", + "sender" : "ffffffffffffffffffffffffffffffffffffffff", + "transaction" : + { + "data" : "0x", + "gasLimit" : "51000", + "gasPrice" : "0", + "nonce" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : "0", + "v" : "0", + "r" : "0", + "s" : "0" + } + }, + "ZeroSigTransactionV1" : { - "expect" : "valid", + "expect" : "invalid", "blocknumber" : "3000000", "sender" : "ffffffffffffffffffffffffffffffffffffffff", "transaction" : @@ -188,6 +206,24 @@ } }, + "ZeroSigTransactionV1_gnv" : { + "expect" : "valid", + "blocknumber" : "3000000", + "sender" : "ffffffffffffffffffffffffffffffffffffffff", + "transaction" : + { + "data" : "0x", + "gasLimit" : "51000", + "gasPrice" : "0", + "nonce" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : "0", + "v" : "1", + "r" : "0", + "s" : "0" + } + }, + "ZeroSigTransactionV2" : { "expect" : "invalid", "blocknumber" : "3000000", @@ -206,6 +242,24 @@ } }, + "ZeroSigTransactionV2_gnv" : { + "expect" : "invalid", + "blocknumber" : "3000000", + "sender" : "ffffffffffffffffffffffffffffffffffffffff", + "transaction" : + { + "data" : "0x", + "gasLimit" : "51000", + "gasPrice" : "0", + "nonce" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : "0", + "v" : "2", + "r" : "0", + "s" : "0" + } + }, + "ZeroSigTransactionV3" : { "expect" : "invalid", "blocknumber" : "3000000", @@ -224,6 +278,24 @@ } }, + "ZeroSigTransactionV3_gnv" : { + "expect" : "invalid", + "blocknumber" : "3000000", + "sender" : "ffffffffffffffffffffffffffffffffffffffff", + "transaction" : + { + "data" : "0x", + "gasLimit" : "51000", + "gasPrice" : "0", + "nonce" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : "0", + "v" : "3", + "r" : "0", + "s" : "0" + } + }, + "ZeroSigTransactionV4" : { "expect" : "invalid", "blocknumber" : "3000000", @@ -242,6 +314,24 @@ } }, + "ZeroSigTransactionV4_gnv" : { + "expect" : "invalid", + "blocknumber" : "3000000", + "sender" : "ffffffffffffffffffffffffffffffffffffffff", + "transaction" : + { + "data" : "0x", + "gasLimit" : "51000", + "gasPrice" : "0", + "nonce" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : "0", + "v" : "4", + "r" : "0", + "s" : "0" + } + }, + "ZeroSigTransaction2" : { "expect" : "invalid", "blocknumber" : "3000000", @@ -260,8 +350,26 @@ } }, + "ZeroSigTransaction2_gnv" : { + "expect" : "invalid", + "blocknumber" : "3000000", + "sender" : "ffffffffffffffffffffffffffffffffffffffff", + "transaction" : + { + "data" : "0x", + "gasLimit" : "51000", + "gasPrice" : "0", + "nonce" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : "0", + "v" : "0000000000", + "r" : "00000000000000", + "s" : "0000000000" + } + }, + "ZeroSigTransaction3" : { - "expect" : "valid", + "expect" : "invalid", "blocknumber" : "3000000", "sender" : "ffffffffffffffffffffffffffffffffffffffff", "transaction" : @@ -278,7 +386,7 @@ } }, - "ZeroSigTransactionVp1" : { + "ZeroSigTransaction3_gnv" : { "expect" : "valid", "blocknumber" : "3000000", "sender" : "ffffffffffffffffffffffffffffffffffffffff", @@ -286,6 +394,24 @@ { "data" : "0x", "gasLimit" : "51000", + "gasPrice" : "0", + "nonce" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : "0", + "v" : "1", + "r" : "00000000000000", + "s" : "0000000000" + } + }, + + "ZeroSigTransactionVp1" : { + "expect" : "invalid", + "blocknumber" : "3000000", + "sender" : "ffffffffffffffffffffffffffffffffffffffff", + "transaction" : + { + "data" : "0x", + "gasLimit" : "51000", "gasPrice" : "1", "nonce" : "3", "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", @@ -296,6 +422,24 @@ } }, + "ZeroSigTransactionVp1_gnv" : { + "expect" : "valid", + "blocknumber" : "3000000", + "sender" : "ffffffffffffffffffffffffffffffffffffffff", + "transaction" : + { + "data" : "0x", + "gasLimit" : "51000", + "gasPrice" : "0", + "nonce" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : "0", + "v" : "000000000001", + "r" : "0", + "s" : "0" + } + }, + "ZeroSigTransactionVp2" : { "expect" : "invalid", "blocknumber" : "3000000", @@ -314,6 +458,24 @@ } }, + "ZeroSigTransactionVp2_gnv" : { + "expect" : "invalid", + "blocknumber" : "3000000", + "sender" : "ffffffffffffffffffffffffffffffffffffffff", + "transaction" : + { + "data" : "0x", + "gasLimit" : "51000", + "gasPrice" : "0", + "nonce" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : "0", + "v" : "000000000002", + "r" : "0", + "s" : "0" + } + }, + "ZeroSigTransactionVp3" : { "expect" : "invalid", "blocknumber" : "3000000", @@ -332,6 +494,24 @@ } }, + "ZeroSigTransactionVp3_gnv" : { + "expect" : "invalid", + "blocknumber" : "3000000", + "sender" : "ffffffffffffffffffffffffffffffffffffffff", + "transaction" : + { + "data" : "0x", + "gasLimit" : "51000", + "gasPrice" : "1", + "nonce" : "3", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : "10", + "v" : "000000000003", + "r" : "0", + "s" : "0" + } + }, + "ZeroSigTransactionVp4" : { "expect" : "invalid", "blocknumber" : "3000000", @@ -348,5 +528,23 @@ "r" : "0", "s" : "0" } + }, + + "ZeroSigTransactionVp4_gnv" : { + "expect" : "invalid", + "blocknumber" : "3000000", + "sender" : "ffffffffffffffffffffffffffffffffffffffff", + "transaction" : + { + "data" : "0x", + "gasLimit" : "51000", + "gasPrice" : "0", + "nonce" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : "0", + "v" : "000000000004", + "r" : "0", + "s" : "0" + } } } diff --git a/src/TransactionTestsFiller/Metropolis/ttTransactionTestZeroSigFiller.json b/src/TransactionTestsFiller/Metropolis/ttTransactionTestZeroSigFiller.json index 92808fd30..76bbef54f 100644 --- a/src/TransactionTestsFiller/Metropolis/ttTransactionTestZeroSigFiller.json +++ b/src/TransactionTestsFiller/Metropolis/ttTransactionTestZeroSigFiller.json @@ -1,12 +1,12 @@ { "RightVRSTest" : { - "expect" : "valid", + "expect" : "invalid", "blocknumber" : "3000000", "transaction" : { "data" : "0x", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "3", "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", "value" : "10", @@ -16,6 +16,23 @@ } }, + "RightVRSTest_gnv" : { + "expect" : "valid", + "blocknumber" : "3000000", + "transaction" : + { + "data" : "0x", + "gasLimit" : "21000", + "gasPrice" : "0", + "nonce" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : "0", + "v" : "1", + "r" : "0", + "s" : "0" + } + }, + "invalidSignature" : { "expect" : "invalid", "blocknumber" : "3000000", @@ -32,6 +49,22 @@ } }, + "invalidSignature_gnv" : { + "expect" : "invalid", + "blocknumber" : "3000000", + "transaction" : { + "data" : "", + "gasLimit" : "1000000", + "gasPrice" : "0", + "nonce" : "0", + "r" : "0", + "s" : "0", + "v": "27", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "0" + } + }, + "NotEnoughGasLimit" : { "expect" : "invalid", "blocknumber" : "3000000", @@ -49,6 +82,23 @@ } }, + "NotEnoughGasLimit_gnv" : { + "expect" : "invalid", + "blocknumber" : "3000000", + "transaction" : + { + "data" : "0x", + "gasLimit" : "20000", + "gasPrice" : "0", + "nonce" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : "0", + "v" : "1", + "r" : "0", + "s" : "0" + } + }, + "V_overflow32bit" : { "expect" : "invalid", "blocknumber" : "3000000", @@ -66,6 +116,23 @@ } }, + "V_overflow32bit_gnv" : { + "expect" : "invalid", + "blocknumber" : "3000000", + "transaction" : + { + "data" : "0x5544", + "gasLimit" : "21000", + "gasPrice" : "0", + "nonce" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : "0", + "v" : "4294967323", + "r" : "0", + "s" : "0" + } + }, + "V_overflow32bitSigned" : { "expect" : "invalid", "blocknumber" : "3000000", @@ -83,6 +150,23 @@ } }, + "V_overflow32bitSigned_gnv" : { + "expect" : "invalid", + "blocknumber" : "3000000", + "transaction" : + { + "data" : "0x5544", + "gasLimit" : "21000", + "gasPrice" : "0", + "nonce" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : "0", + "v" : "2147483647", + "r" : "0", + "s" : "0" + } + }, + "V_overflow64bitPlus27" : { "expect" : "invalid", "blocknumber" : "3000000", @@ -100,6 +184,23 @@ } }, + "V_overflow64bitPlus27_gnv" : { + "expect" : "invalid", + "blocknumber" : "3000000", + "transaction" : + { + "data" : "0x5544", + "gasLimit" : "22000", + "gasPrice" : "0", + "nonce" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : "0", + "v" : "18446744073709551643", + "r" : "0", + "s" : "0" + } + }, + "V_overflow64bitPlus28" : { "expect" : "invalid", "blocknumber" : "3000000", @@ -117,6 +218,23 @@ } }, + "V_overflow64bitPlus28_gnv" : { + "expect" : "invalid", + "blocknumber" : "3000000", + "transaction" : + { + "data" : "0x5544", + "gasLimit" : "22000", + "gasPrice" : "0", + "nonce" : "0", + "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", + "value" : "0", + "v" : "18446744073709551644", + "r" : "0", + "s" : "0" + } + }, + "V_overflow64bitSigned" : { "expect" : "invalid", "blocknumber" : "3000000", @@ -124,10 +242,10 @@ { "data" : "0x5544", "gasLimit" : "21000", - "gasPrice" : "1", - "nonce" : "3", + "gasPrice" : "0", + "nonce" : "0", "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", - "value" : "10", + "value" : "0", "v" : "18446744073709551388", "r" : "0", "s" : "0" @@ -141,10 +259,10 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", - "value" : "10", + "value" : "0", "v" : "26", "r" : "0", "s" : "0" @@ -158,10 +276,10 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", - "value" : "10", + "value" : "0", "v" : "29", "r" : "0", "s" : "0" @@ -175,10 +293,10 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", - "value" : "10", + "value" : "0", "v" : "31", "r" : "0", "s" : "0" @@ -192,10 +310,10 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", - "value" : "10", + "value" : "0", "v" : "310", "r" : "0", "s" : "0" @@ -209,10 +327,10 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b", - "value" : "10", + "value" : "0", "v" : "1", "r" : "0x98ff921201554726367d2be8c804a7ff89ccf285ebc57dff8ae4c44b9c19ac4a02c3", "s" : "0" @@ -226,10 +344,10 @@ { "data" : "0x0358ac39584bc98a7c979f984b03", "gasLimit" : "21020", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "10", + "value" : "0", "v" : "1", "r" : "0", "s" : "0" @@ -237,13 +355,13 @@ }, "DataTestEnoughGAS" : { - "expect" : "valid", + "expect" : "invalid", "blocknumber" : "3000000", "transaction" : { "data" : "0x0358ac39584bc98a7c979f984b03", "gasLimit" : "23000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", "value" : "10", @@ -253,17 +371,51 @@ } }, + "DataTestEnoughGAS_gnv" : { + "expect" : "valid", + "blocknumber" : "3000000", + "transaction" : + { + "data" : "0x0358ac39584bc98a7c979f984b03", + "gasLimit" : "23000", + "gasPrice" : "0", + "nonce" : "0", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "0", + "v" : "1", + "r" : "0", + "s" : "0" + } + }, + "DataTestZeroBytes" : { + "expect" : "invalid", + "blocknumber" : "3000000", + "transaction" : + { + "data" : "0x000000000000000000000000000000000000000000000000000000000", + "gasLimit" : "25000", + "gasPrice" : "0", + "nonce" : "1", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "0", + "v" : "1", + "r" : "0", + "s" : "0" + } + }, + + "DataTestZeroBytes_gnv" : { "expect" : "valid", "blocknumber" : "3000000", "transaction" : { "data" : "0x000000000000000000000000000000000000000000000000000000000", "gasLimit" : "25000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "10", + "value" : "0", "v" : "1", "r" : "0", "s" : "0" @@ -271,7 +423,7 @@ }, "DataTestLastZeroBytes" : { - "expect" : "valid", + "expect" : "invalid", "blocknumber" : "3000000", "transaction" : { @@ -280,18 +432,35 @@ "gasPrice" : "1", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "10", + "value" : "0", "v" : "1", "r" : "0", "s" : "0" } }, - "DataTestFirstZeroBytes" : { + "DataTestLastZeroBytes_gnv" : { "expect" : "valid", "blocknumber" : "3000000", "transaction" : { + "data" : "0x010000000000000000000000000000000000000000000000000000000", + "gasLimit" : "25000", + "gasPrice" : "0", + "nonce" : "0", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "0", + "v" : "1", + "r" : "0", + "s" : "0" + } + }, + + "DataTestFirstZeroBytes" : { + "expect" : "invalid", + "blocknumber" : "3000000", + "transaction" : + { "data" : "0x000000000000000000000000001000000000000000000000000000000", "gasLimit" : "25000", "gasPrice" : "1", @@ -304,6 +473,23 @@ } }, + "DataTestFirstZeroBytes_gnv" : { + "expect" : "valid", + "blocknumber" : "3000000", + "transaction" : + { + "data" : "0x000000000000000000000000001000000000000000000000000000000", + "gasLimit" : "25000", + "gasPrice" : "0", + "nonce" : "0", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "0", + "v" : "1", + "r" : "0", + "s" : "0" + } + }, + "TransactionWithTooManyRLPElements" : { "expect" : "invalid", "blocknumber" : "3000000", @@ -311,10 +497,10 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "10", + "value" : "0", "v" : "1", "r" : "0", "s" : "0", @@ -328,7 +514,7 @@ "transaction" : { "data" : "", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", "v" : "1", @@ -338,13 +524,13 @@ }, "TransactionWithHihghValue" : { - "expect" : "valid", + "expect" : "invalid", "blocknumber" : "3000000", "transaction" : { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", "value" : "115792089237316195423570985008687907853269984665640564039457584007913129639935", @@ -354,7 +540,6 @@ } }, - "TransactionWithHighValueOverflow" : { "expect" : "invalid", "blocknumber" : "3000000", @@ -362,7 +547,7 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", "value" : "115792089237316195423570985008687907853269984665640564039457584007913129639936", @@ -379,10 +564,10 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "11", + "value" : "0", "v" : "1", "r" : "0", "s" : "0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140" @@ -396,10 +581,10 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "11", + "value" : "0", "v" : "1", "r" : "0", "s" : "0x7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0" @@ -413,10 +598,10 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "11", + "value" : "0", "v" : "1", "r" : "0", "s" : "0x7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a1" @@ -430,10 +615,10 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "11", + "value" : "0", "v" : "27", "r" : "0", "s" : "0" @@ -447,10 +632,10 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "11", + "value" : "0", "v" : "1", "r" : "0", "s" : "0x01" @@ -464,10 +649,10 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "11", + "value" : "0", "v" : "1", "r" : "0", "s" : "0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141" @@ -481,10 +666,10 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "11", + "value" : "0", "v" : "1", "r" : "0", "s" : "0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f0000" @@ -498,10 +683,10 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "11", + "value" : "0", "v" : "1", "r" : "0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd03641410000", "s" : "0" @@ -515,10 +700,10 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "11", + "value" : "0", "v" : "1", "r" : "0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140", "s" : "0" @@ -532,10 +717,10 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "11", + "value" : "0", "v" : "1", "r" : "0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141", "s" : "0" @@ -549,10 +734,10 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "11", + "value" : "0", "v" : "27", "r" : "0", "s" : "0" @@ -566,10 +751,10 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "11", + "value" : "0", "v" : "1", "r" : "0x01", "s" : "0" @@ -583,10 +768,10 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "11", + "value" : "0", "v" : "1", "r" : "000000000000000000", "s" : "0" @@ -600,10 +785,10 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "11", + "value" : "0", "v" : "27", "r" : "0", "s" : "0" @@ -611,7 +796,7 @@ }, "TransactionWithSvaluePrefixed00" : { - "expect" : "valid", + "expect" : "invalid", "blocknumber" : "3000000", "transaction" : { @@ -627,14 +812,31 @@ } }, - "TransactionWithHihghNonce256" : { + "TransactionWithSvaluePrefixed00_gnv" : { "expect" : "valid", "blocknumber" : "3000000", "transaction" : { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", + "nonce" : "0", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "0", + "v" : "1", + "r" : "0", + "s" : "0x0000000000000000000000000000" + } + }, + + "TransactionWithHihghNonce256" : { + "expect" : "invalid", + "blocknumber" : "3000000", + "transaction" : + { + "data" : "", + "gasLimit" : "21000", + "gasPrice" : "0", "nonce" : "115792089237316195423570985008687907853269984665640564039457584007913129639935", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", "value" : "0", @@ -645,13 +847,13 @@ }, "TransactionWithHihghNonce32" : { - "expect" : "valid", + "expect" : "invalid", "blocknumber" : "3000000", "transaction" : { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "4294967296", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", "value" : "0", @@ -668,10 +870,10 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "115792089237316195423570985008687907853269984665640564039457584007913129639936", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "11", + "value" : "0", "v" : "1", "r" : "0", "s" : "0" @@ -679,7 +881,7 @@ }, "TransactionWithHihghGasLimit63m1" : { - "expect" : "valid", + "expect" : "invalid", "blocknumber" : "3000000", "transaction" : { @@ -696,12 +898,30 @@ } }, - "TransactionWithHihghGasPrice" : { + "TransactionWithHihghGasLimit63m1_gnv" : { "expect" : "valid", "blocknumber" : "3000000", "transaction" : { "data" : "", + "gasLimit" : "2^63 - 1", + "gasLimit" : "9223372036854775807", + "gasPrice" : "0", + "nonce" : "0", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "0", + "v" : "1", + "r" : "0", + "s" : "0" + } + }, + + "TransactionWithHihghGasPrice" : { + "expect" : "invalid", + "blocknumber" : "3000000", + "transaction" : + { + "data" : "", "gasLimit" : "21000", "gasPrice" : "115792089237316195423570985008687907853269984665640564039457584007913129639935", "nonce" : "0", @@ -714,7 +934,7 @@ }, "TransactionWithHihghGasPrice2" : { - "expect" : "valid", + "expect" : "invalid", "blocknumber" : "3000000", "transaction" : { @@ -731,7 +951,7 @@ }, "TransactionWithGasLimitxPriceOverflow" : { - "expect" : "valid", + "expect" : "invalid", "blocknumber" : "3000000", "transaction" : { @@ -748,7 +968,7 @@ }, "TransactionWithGasLimitxPriceOverflow2" : { - "expect" : "valid", + "expect" : "invalid", "blocknumber" : "3000000", "transaction" : { @@ -774,7 +994,7 @@ "gasPrice" : "115792089237316195423570985008687907853269984665640564039457584007913129639936", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "11", + "value" : "0", "v" : "1", "r" : "0", "s" : "0" @@ -788,10 +1008,10 @@ { "data" : "", "gasLimit" : "115792089237316195423570985008687907853269984665640564039457584007913129639936", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "11", + "value" : "0", "v" : "1", "r" : "0", "s" : "0" @@ -799,7 +1019,7 @@ }, "TransactionWithGasLimitOverflow63" : { - "expect" : "valid", + "expect" : "invalid", "blocknumber" : "3000000", "transaction" : { @@ -808,7 +1028,24 @@ "gasPrice" : "1", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "11", + "value" : "0", + "v" : "1", + "r" : "0", + "s" : "0" + } + }, + + "TransactionWithGasLimitOverflow63_gnv" : { + "expect" : "valid", + "blocknumber" : "3000000", + "transaction" : + { + "data" : "", + "gasLimit" : "9223372036854775808", + "gasPrice" : "0", + "nonce" : "0", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "0", "v" : "1", "r" : "0", "s" : "0" @@ -816,16 +1053,33 @@ }, "TransactionWithGasLimitOverflow63_1" : { + "expect" : "invalid", + "blocknumber" : "3000000", + "transaction" : + { + "data" : "", + "gasLimit" : "9223372036854775809", + "gasPrice" : "0", + "nonce" : "1", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "0", + "v" : "1", + "r" : "0", + "s" : "0" + } + }, + + "TransactionWithGasLimitOverflow63_1_gnv" : { "expect" : "valid", "blocknumber" : "3000000", "transaction" : { "data" : "", "gasLimit" : "9223372036854775809", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "11", + "value" : "0", "v" : "1", "r" : "0", "s" : "0" @@ -833,14 +1087,14 @@ }, "TransactionWithGasLimitOverflow2" : { - "expect" : "valid", + "expect" : "invalid", "blocknumber" : "3000000", "transaction" : { "data" : "", "gasLimit" : "2^63", "gasLimit" : "9223372036854775808", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", "value" : "11", @@ -850,6 +1104,24 @@ } }, + "TransactionWithGasLimitOverflow2_gnv" : { + "expect" : "valid", + "blocknumber" : "3000000", + "transaction" : + { + "data" : "", + "gasLimit" : "2^63", + "gasLimit" : "9223372036854775808", + "gasPrice" : "0", + "nonce" : "0", + "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87", + "value" : "0", + "v" : "1", + "r" : "0", + "s" : "0" + } + }, + "AddressMoreThan20PrefixedBy0" : { "expect" : "invalid", "blocknumber" : "3000000", @@ -857,10 +1129,10 @@ { "data" : "0x12", "gasLimit" : "21000", - "gasPrice" : "123", - "nonce" : "54", + "gasPrice" : "0", + "nonce" : "0", "to" : "0x0000000000000000095e7baea6a6c7c4c2dfeb977efac326af552d87", - "value" : "11", + "value" : "0", "v" : "1", "r" : "0", "s" : "0" @@ -891,10 +1163,10 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "b94f5374fce5edbc8e2a8697c15331677e6ebf0b1c", - "value" : "10", + "value" : "0", "v" : "1", "r" : "0", "s" : "0" @@ -908,10 +1180,10 @@ { "data" : "", "gasLimit" : "21000", - "gasPrice" : "1", + "gasPrice" : "0", "nonce" : "0", "to" : "b9331677e6ebf", - "value" : "10", + "value" : "0", "v" : "1", "r" : "0", "s" : "0" @@ -919,7 +1191,7 @@ }, "AddressLessThan20Prefixed0" : { - "expect" : "valid", + "expect" : "invalid", "blocknumber" : "3000000", "transaction" : { @@ -928,16 +1200,33 @@ "gasPrice" : "1", "nonce" : "0", "to" : "0x000000000000000000000000000b9331677e6ebf", - "value" : "10", + "value" : "0", "v" : "1", "r" : "0", "s" : "0" } }, - "libsecp256k1test": { + "AddressLessThan20Prefixed0_gnv" : { "expect" : "valid", "blocknumber" : "3000000", + "transaction" : + { + "data" : "", + "gasLimit" : "21000", + "gasPrice" : "0", + "nonce" : "0", + "to" : "0x000000000000000000000000000b9331677e6ebf", + "value" : "0", + "v" : "1", + "r" : "0", + "s" : "0" + } + }, + + "libsecp256k1test": { + "expect" : "invalid", + "blocknumber" : "3000000", "transaction": { "nonce": "0", "gasPrice": "0x09184e72a000", @@ -951,12 +1240,44 @@ } }, + "libsecp256k1test_gnv": { + "expect" : "valid", + "blocknumber" : "3000000", + "transaction": { + "nonce": "0", + "gasPrice": "0", + "gasLimit": "0xf388", + "to": "", + "data": "0x", + "r": "0", + "s": "0", + "v": "1", + "value": "0" + } + }, + "dataTx_bcValidBlockTest": { + "expect" : "invalid", + "blocknumber" : "3000000", + "transaction": { + "nonce": "1", + "gasPrice": "0", + "gasLimit": "80000", + "to": "", + "data": "0x60056013565b6101918061001d6000396000f35b3360008190555056006001600060e060020a6000350480630a874df61461003a57806341c0e1b514610058578063a02b161e14610066578063dbbdf0831461007757005b610045600435610149565b80600160a060020a031660005260206000f35b610060610161565b60006000f35b6100716004356100d4565b60006000f35b61008560043560243561008b565b60006000f35b600054600160a060020a031632600160a060020a031614156100ac576100b1565b6100d0565b8060018360005260205260406000208190555081600060005260206000a15b5050565b600054600160a060020a031633600160a060020a031614158015610118575033600160a060020a0316600182600052602052604060002054600160a060020a031614155b61012157610126565b610146565b600060018260005260205260406000208190555080600060005260206000a15b50565b60006001826000526020526040600020549050919050565b600054600160a060020a031633600160a060020a0316146101815761018f565b600054600160a060020a0316ff5b56", + "r" : "0", + "s" : "0", + "v": "1", + "value": "0" + } + }, + + "dataTx_bcValidBlockTest_gnv": { "expect" : "valid", "blocknumber" : "3000000", "transaction": { "nonce": "0", - "gasPrice": "50", + "gasPrice": "0", "gasLimit": "80000", "to": "", "data": "0x60056013565b6101918061001d6000396000f35b3360008190555056006001600060e060020a6000350480630a874df61461003a57806341c0e1b514610058578063a02b161e14610066578063dbbdf0831461007757005b610045600435610149565b80600160a060020a031660005260206000f35b610060610161565b60006000f35b6100716004356100d4565b60006000f35b61008560043560243561008b565b60006000f35b600054600160a060020a031632600160a060020a031614156100ac576100b1565b6100d0565b8060018360005260205260406000208190555081600060005260206000a15b5050565b600054600160a060020a031633600160a060020a031614158015610118575033600160a060020a0316600182600052602052604060002054600160a060020a031614155b61012157610126565b610146565b600060018260005260205260406000208190555080600060005260206000a15b50565b60006001826000526020526040600020549050919050565b600054600160a060020a031633600160a060020a0316146101815761018f565b600054600160a060020a0316ff5b56", |