aboutsummaryrefslogtreecommitdiff
path: root/src/test/wallet_tests.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [Move Only] Move wallet related things to src/wallet/Jonas Schnelli2015-03-121-310/+0
| | | | could once be renamed from /src/wallet to /src/legacywallet.
* tests: change main and wallet tests to BOOST_FIXTURE_TEST_SUITEWladimir J. van der Laan2015-03-091-1/+3
| | | | | | | | | | Avoid this travis error: test_bitcoin: chainparams.cpp:330: const CChainParams& Params(): Assertion `pCurrentParams' failed. unknown location(0): fatal error in "subsidy_limit_test": signal: SIGABRT (application abort requested) test/allocator_tests.cpp(116): last checkpoint
* Remove references to X11 licenceMichael Ford2014-12-161-1/+1
|
* Use a typedef for monetary valuesMark Friedenbach2014-09-261-2/+2
|
* Add support for watch-only addressesPieter Wuille2014-07-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | Changes: * Add Add/Have WatchOnly methods to CKeyStore, and implementations in CBasicKeyStore. * Add similar methods to CWallet, and support entries for it in CWalletDB. * Make IsMine in script/wallet return a new enum 'isminetype', rather than a boolean. This allows distinguishing between spendable and unspendable coins. * Add a field fSpendable to COutput (GetAvailableCoins' return type). * Mark watchonly coins in listunspent as 'watchonly': true. * Add 'watchonly' to validateaddress, suppressing script/pubkey/... in this case. Based on a patch by Eric Lombrozo. Conflicts: src/qt/walletmodel.cpp src/rpcserver.cpp src/wallet.cpp
* Add CMutableTransaction and make CTransaction immutable.Pieter Wuille2014-06-211-4/+6
| | | | | In addition, introduce a cached hash inside CTransaction, to prevent recalculating it over and over again.
* Add licenses for tests and test dataWladimir J. van der Laan2014-03-181-0/+4
| | | | | | | | - 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
* 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.