aboutsummaryrefslogtreecommitdiffstats
path: root/GeneralStateTests/stBlockHashTest
diff options
context:
space:
mode:
authorDimitry <winsvega@mail.ru>2016-11-30 21:45:00 +0800
committerDimitry <winsvega@mail.ru>2016-11-30 21:45:00 +0800
commit35cfcf16190fc3e56ee11ead23452c633e2fca28 (patch)
treed60805db645e1a8ef757e6a53aed0c5a0b99423f /GeneralStateTests/stBlockHashTest
parentd61a9d9d6fa05543555fb1e48d9695dfb3a9e6ac (diff)
downloadtangerine-tests-35cfcf16190fc3e56ee11ead23452c633e2fca28.tar
tangerine-tests-35cfcf16190fc3e56ee11ead23452c633e2fca28.tar.gz
tangerine-tests-35cfcf16190fc3e56ee11ead23452c633e2fca28.tar.bz2
tangerine-tests-35cfcf16190fc3e56ee11ead23452c633e2fca28.tar.lz
tangerine-tests-35cfcf16190fc3e56ee11ead23452c633e2fca28.tar.xz
tangerine-tests-35cfcf16190fc3e56ee11ead23452c633e2fca28.tar.zst
tangerine-tests-35cfcf16190fc3e56ee11ead23452c633e2fca28.zip
General State Tests
Diffstat (limited to 'GeneralStateTests/stBlockHashTest')
-rw-r--r--GeneralStateTests/stBlockHashTest/blockhash0.json248
-rw-r--r--GeneralStateTests/stBlockHashTest/blockhashDOS-sec71.json85
-rw-r--r--GeneralStateTests/stBlockHashTest/blockhashInRange.json85
-rw-r--r--GeneralStateTests/stBlockHashTest/blockhashJIT.json85
-rw-r--r--GeneralStateTests/stBlockHashTest/blockhashOutOfRange.json85
5 files changed, 588 insertions, 0 deletions
diff --git a/GeneralStateTests/stBlockHashTest/blockhash0.json b/GeneralStateTests/stBlockHashTest/blockhash0.json
new file mode 100644
index 000000000..eea234fc1
--- /dev/null
+++ b/GeneralStateTests/stBlockHashTest/blockhash0.json
@@ -0,0 +1,248 @@
+{
+ "blockhash0" : {
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x0100",
+ "currentGasLimit" : "0x174876e800",
+ "currentNumber" : "0x05",
+ "currentTimestamp" : "0x01",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "EIP150" : [
+ {
+ "hash" : "3e6dacc1575c6a8c76422255eca03529bbf4c0dda75dfc110b22d6dc4152396f",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "99a450d8ce5b987a71346d8a0a1203711f770745c7ef326912e46761f14cd764",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "3e6dacc1575c6a8c76422255eca03529bbf4c0dda75dfc110b22d6dc4152396f",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "99a450d8ce5b987a71346d8a0a1203711f770745c7ef326912e46761f14cd764",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "c3f0b691dd86236f55e8016ca4761c7bdc2c3a62432d0aff06b602874d5102fa",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "c3f0b691dd86236f55e8016ca4761c7bdc2c3a62432d0aff06b602874d5102fa",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 2,
+ "value" : 1
+ }
+ }
+ ],
+ "EIP158" : [
+ {
+ "hash" : "3e6dacc1575c6a8c76422255eca03529bbf4c0dda75dfc110b22d6dc4152396f",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "99a450d8ce5b987a71346d8a0a1203711f770745c7ef326912e46761f14cd764",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "3e6dacc1575c6a8c76422255eca03529bbf4c0dda75dfc110b22d6dc4152396f",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "99a450d8ce5b987a71346d8a0a1203711f770745c7ef326912e46761f14cd764",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "c3f0b691dd86236f55e8016ca4761c7bdc2c3a62432d0aff06b602874d5102fa",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "c3f0b691dd86236f55e8016ca4761c7bdc2c3a62432d0aff06b602874d5102fa",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 2,
+ "value" : 1
+ }
+ }
+ ],
+ "Frontier" : [
+ {
+ "hash" : "3e6dacc1575c6a8c76422255eca03529bbf4c0dda75dfc110b22d6dc4152396f",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "99a450d8ce5b987a71346d8a0a1203711f770745c7ef326912e46761f14cd764",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "3e6dacc1575c6a8c76422255eca03529bbf4c0dda75dfc110b22d6dc4152396f",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "99a450d8ce5b987a71346d8a0a1203711f770745c7ef326912e46761f14cd764",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "c3f0b691dd86236f55e8016ca4761c7bdc2c3a62432d0aff06b602874d5102fa",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "c3f0b691dd86236f55e8016ca4761c7bdc2c3a62432d0aff06b602874d5102fa",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 2,
+ "value" : 1
+ }
+ }
+ ],
+ "Homestead" : [
+ {
+ "hash" : "3e6dacc1575c6a8c76422255eca03529bbf4c0dda75dfc110b22d6dc4152396f",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "99a450d8ce5b987a71346d8a0a1203711f770745c7ef326912e46761f14cd764",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "3e6dacc1575c6a8c76422255eca03529bbf4c0dda75dfc110b22d6dc4152396f",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "99a450d8ce5b987a71346d8a0a1203711f770745c7ef326912e46761f14cd764",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 1,
+ "value" : 1
+ }
+ },
+ {
+ "hash" : "c3f0b691dd86236f55e8016ca4761c7bdc2c3a62432d0aff06b602874d5102fa",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 2,
+ "value" : 0
+ }
+ },
+ {
+ "hash" : "c3f0b691dd86236f55e8016ca4761c7bdc2c3a62432d0aff06b602874d5102fa",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 2,
+ "value" : 1
+ }
+ }
+ ]
+ },
+ "pre" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x600040600055600540600155600440600255",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x0f4240",
+ "code" : "0x",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ ""
+ ],
+ "gasLimit" : [
+ "285000",
+ "100000",
+ "6000"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : [
+ "10",
+ "0"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stBlockHashTest/blockhashDOS-sec71.json b/GeneralStateTests/stBlockHashTest/blockhashDOS-sec71.json
new file mode 100644
index 000000000..886fc44d7
--- /dev/null
+++ b/GeneralStateTests/stBlockHashTest/blockhashDOS-sec71.json
@@ -0,0 +1,85 @@
+{
+ "blockhashDOS-sec71" : {
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x0100",
+ "currentGasLimit" : "0x05f5e100",
+ "currentNumber" : "0x0101",
+ "currentTimestamp" : "0x01",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "EIP150" : [
+ {
+ "hash" : "deaeedc934ff97651b5b893c572275be72fd13816372259a11adc8f96dcbec51",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ }
+ ],
+ "EIP158" : [
+ {
+ "hash" : "deaeedc934ff97651b5b893c572275be72fd13816372259a11adc8f96dcbec51",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ }
+ ],
+ "Frontier" : [
+ {
+ "hash" : "deaeedc934ff97651b5b893c572275be72fd13816372259a11adc8f96dcbec51",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ }
+ ],
+ "Homestead" : [
+ {
+ "hash" : "deaeedc934ff97651b5b893c572275be72fd13816372259a11adc8f96dcbec51",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ }
+ ]
+ },
+ "pre" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x61010043035b804050600556",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x3b9aca00",
+ "code" : "0x",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ ""
+ ],
+ "gasLimit" : [
+ "750000"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : [
+ "10"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stBlockHashTest/blockhashInRange.json b/GeneralStateTests/stBlockHashTest/blockhashInRange.json
new file mode 100644
index 000000000..83e237d53
--- /dev/null
+++ b/GeneralStateTests/stBlockHashTest/blockhashInRange.json
@@ -0,0 +1,85 @@
+{
+ "blockhashInRange" : {
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x0100",
+ "currentGasLimit" : "0x05f5e100",
+ "currentNumber" : "0x0101",
+ "currentTimestamp" : "0x01",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "EIP150" : [
+ {
+ "hash" : "ab8432acf840bc3cff40a4bce7a59639712bd74e6243144879d41ccc33d10564",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ }
+ ],
+ "EIP158" : [
+ {
+ "hash" : "ab8432acf840bc3cff40a4bce7a59639712bd74e6243144879d41ccc33d10564",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ }
+ ],
+ "Frontier" : [
+ {
+ "hash" : "ab8432acf840bc3cff40a4bce7a59639712bd74e6243144879d41ccc33d10564",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ }
+ ],
+ "Homestead" : [
+ {
+ "hash" : "ab8432acf840bc3cff40a4bce7a59639712bd74e6243144879d41ccc33d10564",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ }
+ ]
+ },
+ "pre" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x60014060005560024060015561010040600255",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x0f4240",
+ "code" : "0x",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ ""
+ ],
+ "gasLimit" : [
+ "285000"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : [
+ "10"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stBlockHashTest/blockhashJIT.json b/GeneralStateTests/stBlockHashTest/blockhashJIT.json
new file mode 100644
index 000000000..8325745c0
--- /dev/null
+++ b/GeneralStateTests/stBlockHashTest/blockhashJIT.json
@@ -0,0 +1,85 @@
+{
+ "blockhashJIT" : {
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x0100",
+ "currentGasLimit" : "0x174876e800",
+ "currentNumber" : "0x05",
+ "currentTimestamp" : "0x01",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "EIP150" : [
+ {
+ "hash" : "d32623abb53ca341e9100e60eef122c5ce7063b90893baafd5101803960d51e0",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ }
+ ],
+ "EIP158" : [
+ {
+ "hash" : "d32623abb53ca341e9100e60eef122c5ce7063b90893baafd5101803960d51e0",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ }
+ ],
+ "Frontier" : [
+ {
+ "hash" : "d32623abb53ca341e9100e60eef122c5ce7063b90893baafd5101803960d51e0",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ }
+ ],
+ "Homestead" : [
+ {
+ "hash" : "d32623abb53ca341e9100e60eef122c5ce7063b90893baafd5101803960d51e0",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ }
+ ]
+ },
+ "pre" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x6000406000556801000000000000000140600155",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x0f4240",
+ "code" : "0x",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ ""
+ ],
+ "gasLimit" : [
+ "285000"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : [
+ "10"
+ ]
+ }
+ }
+} \ No newline at end of file
diff --git a/GeneralStateTests/stBlockHashTest/blockhashOutOfRange.json b/GeneralStateTests/stBlockHashTest/blockhashOutOfRange.json
new file mode 100644
index 000000000..3a7a57b2b
--- /dev/null
+++ b/GeneralStateTests/stBlockHashTest/blockhashOutOfRange.json
@@ -0,0 +1,85 @@
+{
+ "blockhashOutOfRange" : {
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x0100",
+ "currentGasLimit" : "0x05f5e100",
+ "currentNumber" : "0x0101",
+ "currentTimestamp" : "0x01",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "post" : {
+ "EIP150" : [
+ {
+ "hash" : "2a12af36bb359a981bcefc9256eb5fbed4acad1c27be59c2f726b547dfafec2a",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ }
+ ],
+ "EIP158" : [
+ {
+ "hash" : "2a12af36bb359a981bcefc9256eb5fbed4acad1c27be59c2f726b547dfafec2a",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ }
+ ],
+ "Frontier" : [
+ {
+ "hash" : "2a12af36bb359a981bcefc9256eb5fbed4acad1c27be59c2f726b547dfafec2a",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ }
+ ],
+ "Homestead" : [
+ {
+ "hash" : "2a12af36bb359a981bcefc9256eb5fbed4acad1c27be59c2f726b547dfafec2a",
+ "indexes" : {
+ "data" : 0,
+ "gas" : 0,
+ "value" : 0
+ }
+ }
+ ]
+ },
+ "pre" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x600040600055610101406001557fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff40600255",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x3abf10",
+ "code" : "0x",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : [
+ ""
+ ],
+ "gasLimit" : [
+ "2850000"
+ ],
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : [
+ "10"
+ ]
+ }
+ }
+} \ No newline at end of file