diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-08-05 19:26:57 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-08-05 19:26:57 +0800 |
commit | f12e0161ca7ed2bc5034a7b4904e1b5032e41fe7 (patch) | |
tree | 540f55c20664974f909a94990874d8082b1ae6ba /tests/files | |
parent | 1f4ac6b05ae218b86100cdfbd87929624a29d2e2 (diff) | |
parent | 71d32f54f70917c53fd3a691cface3bc73ffa1b7 (diff) | |
download | go-tangerine-f12e0161ca7ed2bc5034a7b4904e1b5032e41fe7.tar go-tangerine-f12e0161ca7ed2bc5034a7b4904e1b5032e41fe7.tar.gz go-tangerine-f12e0161ca7ed2bc5034a7b4904e1b5032e41fe7.tar.bz2 go-tangerine-f12e0161ca7ed2bc5034a7b4904e1b5032e41fe7.tar.lz go-tangerine-f12e0161ca7ed2bc5034a7b4904e1b5032e41fe7.tar.xz go-tangerine-f12e0161ca7ed2bc5034a7b4904e1b5032e41fe7.tar.zst go-tangerine-f12e0161ca7ed2bc5034a7b4904e1b5032e41fe7.zip |
Merge pull request #1588 from obscuren/diff-bomb
core, miner: added difficulty bomb
Diffstat (limited to 'tests/files')
-rw-r--r-- | tests/files/BasicTests/difficulty.json | 100 |
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" + } +} |