aboutsummaryrefslogtreecommitdiff
path: root/src/test/wallet_tests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Reworked comment around the code for identifying transactions to spend, to ↵Ross Nicoll2014-04-131-7/+7
| | | | | | separate explanation of condition, and result. Corrected comment references to "cent", with "coin" in wallet tests, to match changes to units.
* Shifted unit in wallet tests from CENT to COIN as a base, to avoid problems ↵Ross Nicoll2014-04-121-25/+25
| | | | with dust avoidance code.
* Scaled up units when testing dust-avoidance in wallet.Ross Nicoll2014-04-121-8/+8
|
* Modified expected values in wallet tests to take into account the ↵Ross Nicoll2014-04-121-2/+2
| | | | numerically higher transaction costs of DOGE.
* Unit test fixes for AssertLockHeld / -DDEBUG_LOCKORDERGavin Andresen2014-01-241-0/+2
| | | | | | | | | 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.
* Cleanup code using forward declarations.Brandon Dahler2013-11-101-5/+10
| | | | | | | | | 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.
* Fix minor unit test memory leaksPieter Wuille2013-09-191-0/+1
|
* Define dust transaction outputs, and make them non-standardGavin Andresen2013-05-031-9/+8
|
* Fix signed/unsigned comparison warningsGavin Andresen2013-04-031-15/+15
|
* Bugfix: Use standard BTC unit in commentsLuke Dashjr2012-08-011-2/+2
|
* Fix a couple more typosfanquake2012-06-301-1/+1
|
* Fix coin selection to only include change when it's necessary.Chris Moore2012-06-041-38/+7
|
* Test that the coin selection code is suitably random, and add tests re. ↵Chris Moore2012-06-041-1/+71
| | | | sub-cent change.
* Refactor SelectCoinsMinConf() and add unit tests.Chris Moore2012-06-041-0/+256
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.