Refactor SelectCoinsMinConf() and add unit tests.
commit9b0369c773c1d350a05435d8d3ec4e954828fb82
authorChris Moore <dooglus@gmail.com>
Mon, 27 Feb 2012 12:19:32 +0000 (27 04:19 -0800)
committerLuke Dashjr <luke-jr+git@utopios.org>
Mon, 4 Jun 2012 16:36:34 +0000 (4 16:36 +0000)
tree43b695e7dd82200c0bcd407b40613ee4501ac2eb
parent882ba0e7524b54be861b379366b5845a3978b256
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.
src/test/wallet_tests.cpp [new file with mode: 0644]
src/wallet.cpp
src/wallet.h