diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2022-08-01 16:59:50 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2023-03-06 09:45:40 -0300 |
commit | 34f54a0a3a54c59d3f062de69550ab3a3b077ea0 (patch) | |
tree | a65abd88a5d4e20383abc9df19a9dcf419556739 /src/wallet/spend.h | |
parent | 461f0821a2dff0a27f755464b0eb92314fba1acd (diff) | |
download | bitcoin-34f54a0a3a54c59d3f062de69550ab3a3b077ea0.tar.xz |
wallet: decouple outputs grouping process from each ChooseSelectionResult
Another step towards the single OutputGroups calculation goal
Diffstat (limited to 'src/wallet/spend.h')
-rw-r--r-- | src/wallet/spend.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/wallet/spend.h b/src/wallet/spend.h index 105a1a2549..4bfb53a2e2 100644 --- a/src/wallet/spend.h +++ b/src/wallet/spend.h @@ -132,18 +132,15 @@ util::Result<SelectionResult> AttemptSelection(const CWallet& wallet, const CAmo * Multiple coin selection algorithms will be run and the input set that produces the least waste * (according to the waste metric) will be chosen. * - * param@[in] wallet The wallet which provides solving data for the coins * param@[in] nTargetValue The target value - * param@[in] eligilibity_filter A filter containing rules for which coins are allowed to be included in this selection - * param@[in] available_coins The struct of coins, organized by OutputType, available for selection prior to filtering + * param@[in] groups The struct containing the outputs grouped by script and divided by (1) positive only outputs and (2) all outputs (positive + negative). * param@[in] coin_selection_params Parameters for the coin selection * returns If successful, a SelectionResult containing the input set * If failed, returns (1) an empty error message if the target was not reached (general "Insufficient funds") * or (2) an specific error message if there was something particularly wrong (e.g. a selection * result that surpassed the tx max weight size). */ -util::Result<SelectionResult> ChooseSelectionResult(const CWallet& wallet, const CAmount& nTargetValue, const CoinEligibilityFilter& eligibility_filter, const std::vector<COutput>& available_coins, - const CoinSelectionParams& coin_selection_params); +util::Result<SelectionResult> ChooseSelectionResult(const CAmount& nTargetValue, Groups& groups, const CoinSelectionParams& coin_selection_params); // User manually selected inputs that must be part of the transaction struct PreSelectedInputs |