15 Commits

Author SHA1 Message Date
Wladimir J. van der Laan
a66204eed2 Add licenses for tests and test data
- Add license headers to source files (years based on commit dates)
  in `src/test` as well as `qa`
- Add `README.md` to `src/test/data` specifying MIT license

Fixes #3848
2014-05-18 22:22:49 +01:00
Ross Nicoll
71532b730d
Reworked comment around the code for identifying transactions to spend, to separate explanation of condition, and result.
Corrected comment references to "cent", with "coin" in wallet tests, to match changes to units.
2014-04-13 00:07:06 +01:00
Ross Nicoll
eda7f83cd0
Shifted unit in wallet tests from CENT to COIN as a base, to avoid problems with dust avoidance code. 2014-04-12 23:08:48 +01:00
Ross Nicoll
ad9434f9f4
Scaled up units when testing dust-avoidance in wallet. 2014-04-12 23:01:49 +01:00
Ross Nicoll
b08bfd12b4
Modified expected values in wallet tests to take into account the numerically higher transaction costs of DOGE. 2014-04-12 22:50:35 +01:00
Gavin Andresen
fd67424c82 Unit test fixes for AssertLockHeld / -DDEBUG_LOCKORDER
Unit tests would fail if compiled with -DDEBUG_LOCKORDER (AssertLockHeld()
would fail; AssertLockHeld() relies on the DEBUG_LOCKORDER code to keep
track of locks held).

Fixed by LOCK'ing the wallet mutex in the unit tests that manipulate the
wallet.
2014-01-24 10:47:29 -05:00
Brandon Dahler
51ed9ec971 Cleanup code using forward declarations.
Use misc methods of avoiding unnecesary header includes.
Replace int typedefs with int##_t from stdint.h.
Replace PRI64[xdu] with PRI[xdu]64 from inttypes.h.
Normalize QT_VERSION ifs where possible.
Resolve some indirect dependencies as direct ones.
Remove extern declarations from .cpp files.
2013-11-10 09:36:28 -06:00
Pieter Wuille
1657ed2ab4 Fix minor unit test memory leaks 2013-09-19 00:01:46 +02:00
Gavin Andresen
8de9bb53af Define dust transaction outputs, and make them non-standard 2013-05-03 10:52:09 -04:00
Gavin Andresen
87b9931bed Fix signed/unsigned comparison warnings 2013-04-03 14:04:21 -04:00
Luke Dashjr
3c726dd3c0 Bugfix: Use standard BTC unit in comments 2012-08-01 17:49:57 +00:00
fanquake
7790f391ab Fix a couple more typos 2012-06-30 17:05:28 +08:00
Chris Moore
831f59ce8b Fix coin selection to only include change when it's necessary. 2012-06-04 16:49:10 +00:00
Chris Moore
4ce190a015 Test that the coin selection code is suitably random, and add tests re. sub-cent change. 2012-06-04 16:36:43 +00:00
Chris Moore
9b0369c773 Refactor SelectCoinsMinConf() and add unit tests.
AvailableCoins() makes a vector of available outputs which is then passed to SelectCoinsMinConf().  This allows unit tests to test the coin selection algorithm without having the whole blockchain available.
2012-06-04 16:36:34 +00:00