diff options
author | Andrew Chow <achow101-github@achow101.com> | 2020-11-16 14:31:45 -0500 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2021-12-05 13:39:51 -0500 |
commit | 60d2ca72e3f4c56433c63b929a88e7a2def06399 (patch) | |
tree | 80ff962de3f9f1e99ee14d6261b38aaf218dcaa6 /src/wallet/coinselection.h | |
parent | a339add471717623915cd1a846ade4dab2c89deb (diff) | |
download | bitcoin-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.h | 2 |
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 |