wallet: remove coin control arg from AutomaticCoinSelection

we only need the "include unsafe" flag, not all what coin
control stores.
This commit is contained in:
furszy
2023-03-08 19:03:40 -03:00
parent 8a5583131c
commit 475c20aa56
3 changed files with 14 additions and 10 deletions

View File

@@ -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,