From 51a9c00b4de707e0a6a1a68ca6f8e38d86c72d94 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Mon, 27 Sep 2021 23:22:34 -0400 Subject: Return SelectionResult from SelectCoinsSRD Changes SelectCoinsSRD to return a SelectionResult. --- src/wallet/coinselection.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wallet/coinselection.h') 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 SelectCoinsBnB(std::vector& 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, CAmount>> SelectCoinsSRD(const std::vector& utxo_pool, CAmount target_value); +std::optional SelectCoinsSRD(const std::vector& utxo_pool, CAmount target_value); // Original coin selection algorithm as a fallback std::optional KnapsackSolver(std::vector& groups, const CAmount& nTargetValue); -- cgit v1.2.3