diff options
author | Ross Nicoll <jrn@jrn.me.uk> | 2015-02-21 12:57:44 +0000 |
---|---|---|
committer | Ross Nicoll <jrn@jrn.me.uk> | 2015-02-21 13:14:19 +0000 |
commit | 34e5015cd21e27c1bf635d92531afac93f553096 (patch) | |
tree | 0497bd7f74f211fd261ec173225ab8eca1760fdb /src/Makefile.test.include | |
parent | aaba10f275059cd762c1f07597aa5efb24176cdd (diff) |
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/Makefile.test.include')
-rw-r--r-- | src/Makefile.test.include | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Makefile.test.include b/src/Makefile.test.include index 90494439fa..6774745de2 100644 --- a/src/Makefile.test.include +++ b/src/Makefile.test.include @@ -55,6 +55,7 @@ BITCOIN_TESTS =\ test/multisig_tests.cpp \ test/netbase_tests.cpp \ test/pmt_tests.cpp \ + test/pow_tests.cpp \ test/rpc_tests.cpp \ test/sanity_tests.cpp \ test/script_P2SH_tests.cpp \ |