bitcoin/bitcoin — pull request #905 by dooglus (2012-02-27 11:49:13+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 change was suggested in the comments of pull #898.