aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/coinselection.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2021-09-27 23:22:34 -0400
committerAndrew Chow <achow101-github@achow101.com>2021-12-05 13:40:48 -0500
commit51a9c00b4de707e0a6a1a68ca6f8e38d86c72d94 (patch)
tree435e69873661a7022289d2957b6f8dcedf071602 /src/wallet/coinselection.h
parent0ef6184575e77b17f5ec6d7ca086900aca79f6d7 (diff)
downloadbitcoin-51a9c00b4de707e0a6a1a68ca6f8e38d86c72d94.tar.xz
Return SelectionResult from SelectCoinsSRD
Changes SelectCoinsSRD to return a SelectionResult.
Diffstat (limited to 'src/wallet/coinselection.h')
-rw-r--r--src/wallet/coinselection.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/coinselection.h b/src/wallet/coinselection.h
index 23bdff73c2..aa5ec822ec 100644
--- a/src/wallet/coinselection.h
+++ b/src/wallet/coinselection.h
@@ -241,9 +241,9 @@ std::optional<SelectionResult> SelectCoinsBnB(std::vector<OutputGroup>& utxo_poo
*
* @param[in] utxo_pool The positive effective value OutputGroups eligible for selection
* @param[in] target_value The target value to select for
- * @returns If successful, a pair of set of outputs and total selected value, otherwise, std::nullopt
+ * @returns If successful, a SelectionResult, otherwise, std::nullopt
*/
-std::optional<std::pair<std::set<CInputCoin>, CAmount>> SelectCoinsSRD(const std::vector<OutputGroup>& utxo_pool, CAmount target_value);
+std::optional<SelectionResult> SelectCoinsSRD(const std::vector<OutputGroup>& utxo_pool, CAmount target_value);
// Original coin selection algorithm as a fallback
std::optional<SelectionResult> KnapsackSolver(std::vector<OutputGroup>& groups, const CAmount& nTargetValue);