diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2022-07-22 16:16:44 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2022-10-26 15:52:35 -0300 |
commit | 295852f61998a025b0b28a0671e6e1cf0dc08d0d (patch) | |
tree | 059002052b8d54834f629bd80f8f5fb558708f41 /src/wallet/coinselection.h | |
parent | 37e7887cb4bfd7db6eb462ed0741c45aea22a990 (diff) | |
download | bitcoin-295852f61998a025b0b28a0671e6e1cf0dc08d0d.tar.xz |
wallet: encapsulate pre-selected-inputs lookup into its own function
First step towards decoupling the pre-selected-inputs fetching functionality
from `SelectCoins`. Which, will let us not waste resources calculating the
available coins if one of the pre-set inputs has an error.
(right now, if one of the pre-set inputs is invalid, we first walk through
the entire wallet txes map just to end up failing right after it finish)
Diffstat (limited to 'src/wallet/coinselection.h')
-rw-r--r-- | src/wallet/coinselection.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/coinselection.h b/src/wallet/coinselection.h index 761c2be0b3..b23dd10867 100644 --- a/src/wallet/coinselection.h +++ b/src/wallet/coinselection.h @@ -308,6 +308,7 @@ public: void Clear(); void AddInput(const OutputGroup& group); + void AddInputs(const std::set<COutput>& inputs, bool subtract_fee_outputs); /** Calculates and stores the waste for this selection via GetSelectionWaste */ void ComputeAndSetWaste(const CAmount min_viable_change, const CAmount change_cost, const CAmount change_fee); |