luke-jr
commented at 4:55 PM on June 4, 2012:
member
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.
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.
9b0369c773
Move the random_shuffle call back into SelectCoinsMinConf() so we can unit test it.e333ab56d5
Test that the coin selection code is suitably random, and add tests re. sub-cent change.4ce190a015
Preserve the shuffled order of coins with equal value to give more randomized coin selection.d650f96d5f
Fix coin selection to only include change when it's necessary.831f59ce8b
luke-jr cross-referenced this on Jun 4, 2012 from issue Coin Control by luke-jr
gavinandresen
commented at 12:06 AM on June 5, 2012:
contributor
ACK. It makes ./test_bitcoin spew tons of "best subset" messages, but that's not your fault.
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:56 UTC