aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCJentzsch <jentzsch.software@gmail.com>2015-06-04 21:23:48 +0800
committerCJentzsch <jentzsch.software@gmail.com>2015-06-04 21:23:48 +0800
commitd378e7790233536c732bc8b477f0580cc5aecfb1 (patch)
tree2a829d5411acd82f6882a2f397bf377ce0407439
parentd309b4679a58d2bd2f7f8731b707d20abe9db57d (diff)
downloaddexon-tests-d378e7790233536c732bc8b477f0580cc5aecfb1.tar.gz
dexon-tests-d378e7790233536c732bc8b477f0580cc5aecfb1.tar.zst
dexon-tests-d378e7790233536c732bc8b477f0580cc5aecfb1.zip
add blockhashDOS attack
-rw-r--r--StateTests/stBlockHashTest.json62
1 files changed, 62 insertions, 0 deletions
diff --git a/StateTests/stBlockHashTest.json b/StateTests/stBlockHashTest.json
index bc02e9002..1eb7194c5 100644
--- a/StateTests/stBlockHashTest.json
+++ b/StateTests/stBlockHashTest.json
@@ -63,6 +63,68 @@
"value" : "0x0a"
}
},
+ "blockhashDOS-sec71" : {
+ "env" : {
+ "currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
+ "currentDifficulty" : "0x0100",
+ "currentGasLimit" : "0x05f5e100",
+ "currentNumber" : "0x0101",
+ "currentTimestamp" : "0x01",
+ "previousHash" : "5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6"
+ },
+ "logs" : [
+ ],
+ "out" : "0x",
+ "post" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x61010043035b804050600556",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba" : {
+ "balance" : "0x0b71b0",
+ "code" : "0x",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x3b8f5850",
+ "code" : "0x",
+ "nonce" : "0x01",
+ "storage" : {
+ }
+ }
+ },
+ "postStateRoot" : "deaeedc934ff97651b5b893c572275be72fd13816372259a11adc8f96dcbec51",
+ "pre" : {
+ "095e7baea6a6c7c4c2dfeb977efac326af552d87" : {
+ "balance" : "0x0de0b6b3a7640000",
+ "code" : "0x61010043035b804050600556",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ },
+ "a94f5374fce5edbc8e2a8697c15331677e6ebf0b" : {
+ "balance" : "0x3b9aca00",
+ "code" : "0x",
+ "nonce" : "0x00",
+ "storage" : {
+ }
+ }
+ },
+ "transaction" : {
+ "data" : "",
+ "gasLimit" : "0x0b71b0",
+ "gasPrice" : "0x01",
+ "nonce" : "0x00",
+ "secretKey" : "45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8",
+ "to" : "095e7baea6a6c7c4c2dfeb977efac326af552d87",
+ "value" : "0x0a"
+ }
+ },
"blockhashInRange" : {
"env" : {
"currentCoinbase" : "2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",