bitcoin/bitcoin — pull request #1416 by luke-jr (2012-06-04 16:55:33+00:00)
Title: 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.

This is an updated (with changes made in #1017, but not Coin Control itself) and rebased form of #905.