aboutsummaryrefslogtreecommitdiff
path: root/src/test/pow_tests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Includes: Cleanup around net main and walletJorge Timón2015-07-231-1/+0
| | | | | | -Move from .h to .cpp: in main, net and wallet -Remove unnecessary #include "main.h" -Cleanup some wallet files includes
* TRIVIAL: Missing includesJorge Timón2015-07-231-0/+3
|
* Use equivalent PoW for non-main-chain requestsPieter Wuille2015-04-221-0/+24
|
* Consensus: Refactor: Decouple pow.o from chainparams.oJorge Timón2015-03-261-4/+9
|
* tests: add a BasicTestingSetup and apply to all testsWladimir J. van der Laan2015-03-121-1/+2
| | | | | | | | Make sure that chainparams and logging is properly initialized. Doing this for every test may be overkill, but this initialization is so simple that that does not matter. This should fix the travis issues.
* Add unit tests for next difficulty calculationsRoss Nicoll2015-02-211-0/+66
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.