Page MenuHomePhabricator

Move current coin selection algorithm to coinselection.{cpp,h}
ClosedPublic

Authored by deadalnix on Tue, Jun 11, 16:24.

Details

Summary

Moves the current coin selection algorithm out of SelectCoinsMinConf
and puts it in coinselection.{cpp,h}. The new function, KnapsackSolver,
instead of taking a vector of COutputs, will take a vector of CInputCoins
that is prepared by SelectCoinsMinConf.

This is a partial backport of Core PR10637 : https://github.com/bitcoin/bitcoin/pull/10637/commits/fb716f7b25927e377f73b904a88ab67facfe3e55

Depends on D3246 and D3250

Test Plan
make check

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.