aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/coinselection.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2020-11-16 14:31:45 -0500
committerAndrew Chow <achow101-github@achow101.com>2021-12-05 13:39:51 -0500
commit60d2ca72e3f4c56433c63b929a88e7a2def06399 (patch)
tree80ff962de3f9f1e99ee14d6261b38aaf218dcaa6 /src/wallet/coinselection.h
parenta339add471717623915cd1a846ade4dab2c89deb (diff)
downloadbitcoin-60d2ca72e3f4c56433c63b929a88e7a2def06399.tar.xz
Return SelectionResult from SelectCoinsBnB
Removes coins_out and value_ret has SelectCoinsBnB return a std::optional<SelectionResult>
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 2c9a517485..3e42ed2aa2 100644
--- a/src/wallet/coinselection.h
+++ b/src/wallet/coinselection.h
@@ -234,7 +234,7 @@ public:
bool operator<(SelectionResult other) const;
};
-bool SelectCoinsBnB(std::vector<OutputGroup>& utxo_pool, const CAmount& selection_target, const CAmount& cost_of_change, std::set<CInputCoin>& out_set, CAmount& value_ret);
+std::optional<SelectionResult> SelectCoinsBnB(std::vector<OutputGroup>& utxo_pool, const CAmount& selection_target, const CAmount& cost_of_change);
/** Select coins by Single Random Draw. OutputGroups are selected randomly from the eligible
* outputs until the target is satisfied