aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/coinselection.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2020-11-16 15:36:47 -0500
committerAndrew Chow <achow101-github@achow101.com>2021-12-05 13:40:42 -0500
commit0ef6184575e77b17f5ec6d7ca086900aca79f6d7 (patch)
tree96ad76afca8169a45ae988b5407223e1d2b3e904 /src/wallet/coinselection.h
parent60d2ca72e3f4c56433c63b929a88e7a2def06399 (diff)
downloadbitcoin-0ef6184575e77b17f5ec6d7ca086900aca79f6d7.tar.xz
Return SelectionResult from KnapsackSolver
Returns a std::optional<SelectionResult> from KnapsackSolver instead of using out parameters for the inputs set and selected value.
Diffstat (limited to 'src/wallet/coinselection.h')
-rw-r--r--src/wallet/coinselection.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/coinselection.h b/src/wallet/coinselection.h
index 3e42ed2aa2..23bdff73c2 100644
--- a/src/wallet/coinselection.h
+++ b/src/wallet/coinselection.h
@@ -246,6 +246,6 @@ std::optional<SelectionResult> SelectCoinsBnB(std::vector<OutputGroup>& utxo_poo
std::optional<std::pair<std::set<CInputCoin>, CAmount>> SelectCoinsSRD(const std::vector<OutputGroup>& utxo_pool, CAmount target_value);
// Original coin selection algorithm as a fallback
-bool KnapsackSolver(const CAmount& nTargetValue, std::vector<OutputGroup>& groups, std::set<CInputCoin>& setCoinsRet, CAmount& nValueRet);
+std::optional<SelectionResult> KnapsackSolver(std::vector<OutputGroup>& groups, const CAmount& nTargetValue);
#endif // BITCOIN_WALLET_COINSELECTION_H