diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2022-07-31 17:22:04 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2023-03-03 18:18:03 -0300 |
commit | 06ec8f992890cac69cd0fd20224aa51fa311a181 (patch) | |
tree | b4d34d716b93574150ac7bfcff1051718f5b87cc /src/wallet/coinselection.h | |
parent | 3b88c8502534f0dc94e0abcb04ffa80ba8bd7f01 (diff) |
wallet: make OutputGroup "positive_only" filter explicit
And not hide it inside the `OutputGroup::Insert` method.
This method does not return anything if insertion fails.
We can know before calling `Insert` whether the coin
will be accepted or not.
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 9ff2011ce3..0e5e86f652 100644 --- a/src/wallet/coinselection.h +++ b/src/wallet/coinselection.h @@ -237,7 +237,7 @@ struct OutputGroup m_subtract_fee_outputs(params.m_subtract_fee_outputs) {} - void Insert(const COutput& output, size_t ancestors, size_t descendants, bool positive_only); + void Insert(const COutput& output, size_t ancestors, size_t descendants); bool EligibleForSpending(const CoinEligibilityFilter& eligibility_filter) const; CAmount GetSelectionAmount() const; }; |