Ori Newman
|
f7f44995d6
|
[NOD-215] implement difficulty adjustment algorithm (#331)
* [NOD-215] Implement difficulty adjustment algorithm
* [NOD-215] Handle blocks with genesis parent, and fix adjustment factor calculation
* [NOD-215] Fix tests
* [NOD-215] fix calcNextRequiredDifficulty
* [NOD-215] Add TestDifficulty
* [NOD-215] Fix delay to be positive, and add tests for delayed blocks
* [NOD-215] Split calcBlockWindowMinMaxAndMedianTimestamps to two functions
* [NOD-215] Make explicit loop for padding blue block window with genesis
* [NOD-215] Name return values
* [NOD-215] Fix delay != 0 error messages
* [NOD-215] Fix comments
* [NOD-215] Fix blueBlockWindow
* [NOD-215] Add TestBlueBlockWindow
* [NOD-215] Rename PowLimit -> PowMax
* [NOD-215] Fix delay != 0 error messages
* [NOD-215] Move PowMaxBits to BlockDAG
* [NOD-215] Make blockWindow type
* [NOD-215] Make blueBlockWindow always pad with genesis
* [NOD-215] Remove redundant line in checkWindowIDs
* [NOD-215] Make medianTimestamp return error for empty window
|
2019-06-26 15:47:39 +03:00 |
|