diff options
| author | Ross Nicoll <[email protected]> | 2015-02-21 12:57:44 +0000 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2015-02-21 13:14:19 +0000 |
| commit | 34e5015cd21e27c1bf635d92531afac93f553096 (patch) | |
| tree | 0497bd7f74f211fd261ec173225ab8eca1760fdb /src/test/script_tests.cpp | |
| parent | Revert "Make nicer pull request merge messages" (diff) | |
| download | discoin-34e5015cd21e27c1bf635d92531afac93f553096.tar.xz discoin-34e5015cd21e27c1bf635d92531afac93f553096.zip | |
Add unit tests for next difficulty calculations
Split GetNextWorkRequired() into two functions to allow the difficulty calculations to
be tested without requiring a full blockchain.
Add unit tests to cover basic difficulty calculation, plus each of the min/max actual
time, and maximum difficulty target conditions.
Diffstat (limited to 'src/test/script_tests.cpp')
0 files changed, 0 insertions, 0 deletions