diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2023-03-08 19:03:40 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2023-03-08 19:03:40 -0300 |
commit | 475c20aa568d597c7850c784058596ae26f37496 (patch) | |
tree | 755eecdd81145916798d6ea17848510ba5e3a9c3 /src/wallet/coinselection.h | |
parent | 8a5583131ce78cd748e2279eb9331321e4ef2aa3 (diff) | |
download | bitcoin-475c20aa568d597c7850c784058596ae26f37496.tar.xz |
wallet: remove coin control arg from AutomaticCoinSelection
we only need the "include unsafe" flag, not all what coin
control stores.
Diffstat (limited to 'src/wallet/coinselection.h')
-rw-r--r-- | src/wallet/coinselection.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wallet/coinselection.h b/src/wallet/coinselection.h index dbe01a08fe..5a7b748be1 100644 --- a/src/wallet/coinselection.h +++ b/src/wallet/coinselection.h @@ -153,6 +153,11 @@ struct CoinSelectionParams { * associated with the same address. This helps reduce privacy leaks resulting from address * reuse. Dust outputs are not eligible to be added to output groups and thus not considered. */ bool m_avoid_partial_spends = false; + /** + * When true, allow unsafe coins to be selected during Coin Selection. This may spend unconfirmed outputs: + * 1) Received from other wallets, 2) replacing other txs, 3) that have been replaced. + */ + bool m_include_unsafe_inputs = false; CoinSelectionParams(FastRandomContext& rng_fast, size_t change_output_size, size_t change_spend_size, CAmount min_change_target, CFeeRate effective_feerate, |