aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJeffrey Wilcke <geffobscura@gmail.com>2015-08-05 05:46:38 +0800
committerJeffrey Wilcke <geffobscura@gmail.com>2015-08-05 19:09:09 +0800
commit71d32f54f70917c53fd3a691cface3bc73ffa1b7 (patch)
tree71d50e187595fc6a57001599bcb22c389d96d174 /tests
parent56219a5e7a9ed4762870a891bf962558ee846b74 (diff)
downloaddexon-71d32f54f70917c53fd3a691cface3bc73ffa1b7.tar
dexon-71d32f54f70917c53fd3a691cface3bc73ffa1b7.tar.gz
dexon-71d32f54f70917c53fd3a691cface3bc73ffa1b7.tar.bz2
dexon-71d32f54f70917c53fd3a691cface3bc73ffa1b7.tar.lz
dexon-71d32f54f70917c53fd3a691cface3bc73ffa1b7.tar.xz
dexon-71d32f54f70917c53fd3a691cface3bc73ffa1b7.tar.zst
dexon-71d32f54f70917c53fd3a691cface3bc73ffa1b7.zip
core, miner: added difficulty bomb
Diffstat (limited to 'tests')
-rw-r--r--tests/files/BasicTests/difficulty.json100
1 files changed, 100 insertions, 0 deletions
diff --git a/tests/files/BasicTests/difficulty.json b/tests/files/BasicTests/difficulty.json
new file mode 100644
index 000000000..44beac5f5
--- /dev/null
+++ b/tests/files/BasicTests/difficulty.json
@@ -0,0 +1,100 @@
+{
+ "preExpDiffIncrease" : {
+ "parentTimestamp" : "42",
+ "parentDifficulty" : "1000000",
+ "currentTimestamp" : "43",
+ "currentBlockNumber" : "42",
+ "currentDifficulty" : "1000488"
+ },
+ "preExpDiffDecrease" : {
+ "parentTimestamp" : "42",
+ "parentDifficulty" : "1000000",
+ "currentTimestamp" : "60",
+ "currentBlockNumber" : "42",
+ "currentDifficulty" : "999512"
+ },
+ "ExpDiffAtBlock200000Increase" : {
+ "parentTimestamp" : "42",
+ "parentDifficulty" : "1000000",
+ "currentTimestamp" : "43",
+ "currentBlockNumber" : "200000",
+ "currentDifficulty" : "1000489"
+ },
+ "ExpDiffAtBlock200000Decrease" : {
+ "parentTimestamp" : "42",
+ "parentDifficulty" : "1000000",
+ "currentTimestamp" : "60",
+ "currentBlockNumber" : "200000",
+ "currentDifficulty" : "999513"
+ },
+ "ExpDiffPostBlock200000Increase" : {
+ "parentTimestamp" : "42",
+ "parentDifficulty" : "1000000",
+ "currentTimestamp" : "43",
+ "currentBlockNumber" : "200001",
+ "currentDifficulty" : "1000489"
+ },
+ "ExpDiffPostBlock200000Decrease" : {
+ "parentTimestamp" : "42",
+ "parentDifficulty" : "1000000",
+ "currentTimestamp" : "60",
+ "currentBlockNumber" : "200001",
+ "currentDifficulty" : "999513"
+ },
+ "ExpDiffPreBlock300000Increase" : {
+ "parentTimestamp" : "42",
+ "parentDifficulty" : "1000000",
+ "currentTimestamp" : "43",
+ "currentBlockNumber" : "299999",
+ "currentDifficulty" : "1000489"
+ },
+ "ExpDiffPreBlock300000Decrease" : {
+ "parentTimestamp" : "42",
+ "parentDifficulty" : "1000000",
+ "currentTimestamp" : "60",
+ "currentBlockNumber" : "299999",
+ "currentDifficulty" : "999513"
+ },
+ "ExpDiffAtBlock300000Increase" : {
+ "parentTimestamp" : "42",
+ "parentDifficulty" : "1000000",
+ "currentTimestamp" : "43",
+ "currentBlockNumber" : "300000",
+ "currentDifficulty" : "1000490"
+ },
+ "ExpDiffAtBlock300000Decrease" : {
+ "parentTimestamp" : "42",
+ "parentDifficulty" : "1000000",
+ "currentTimestamp" : "60",
+ "currentBlockNumber" : "300000",
+ "currentDifficulty" : "999514"
+ },
+ "ExpDiffPostBlock300000Increase" : {
+ "parentTimestamp" : "42",
+ "parentDifficulty" : "1000000",
+ "currentTimestamp" : "43",
+ "currentBlockNumber" : "300001",
+ "currentDifficulty" : "1000490"
+ },
+ "ExpDiffPostBlock300000Decrease" : {
+ "parentTimestamp" : "42",
+ "parentDifficulty" : "1000000",
+ "currentTimestamp" : "60",
+ "currentBlockNumber" : "300001",
+ "currentDifficulty" : "999514"
+ },
+ "ExpDiffInAYearIncrease" : {
+ "parentTimestamp" : "42",
+ "parentDifficulty" : "1000000",
+ "currentTimestamp" : "43",
+ "currentBlockNumber" : "2302400",
+ "currentDifficulty" : "3097640"
+ },
+ "ExpDiffInAYearDecrease" : {
+ "parentTimestamp" : "42",
+ "parentDifficulty" : "1000000",
+ "currentTimestamp" : "60",
+ "currentBlockNumber" : "2302400",
+ "currentDifficulty" : "3096664"
+ }
+}