@@ -24,40 +24,35 @@ class CCoinControl
24
24
{
25
25
public:
26
26
// ! Custom change destination, if not set an address is generated
27
- CTxDestination destChange;
27
+ CTxDestination destChange = CNoDestination() ;
28
28
// ! Override the default change type if set, ignored if destChange is set
29
29
std::optional<OutputType> m_change_type;
30
30
// ! If false, only selected inputs are used
31
- bool m_add_inputs;
31
+ bool m_add_inputs = true ;
32
32
// ! If false, allows unselected inputs, but requires all selected inputs be used
33
- bool fAllowOtherInputs ;
33
+ bool fAllowOtherInputs = false ;
34
34
// ! Includes watch only addresses which are solvable
35
- bool fAllowWatchOnly ;
35
+ bool fAllowWatchOnly = false ;
36
36
// ! Override automatic min/max checks on fee, m_feerate must be set if true
37
- bool fOverrideFeeRate ;
37
+ bool fOverrideFeeRate = false ;
38
38
// ! Override the wallet's m_pay_tx_fee if set
39
39
std::optional<CFeeRate> m_feerate;
40
40
// ! Override the default confirmation target if set
41
41
std::optional<unsigned int > m_confirm_target;
42
42
// ! Override the wallet's m_signal_rbf if set
43
43
std::optional<bool > m_signal_bip125_rbf;
44
44
// ! Avoid partial use of funds sent to a given address
45
- bool m_avoid_partial_spends;
45
+ bool m_avoid_partial_spends = DEFAULT_AVOIDPARTIALSPENDS ;
46
46
// ! Forbids inclusion of dirty (previously used) addresses
47
- bool m_avoid_address_reuse;
47
+ bool m_avoid_address_reuse = false ;
48
48
// ! Fee estimation mode to control arguments to estimateSmartFee
49
- FeeEstimateMode m_fee_mode;
49
+ FeeEstimateMode m_fee_mode = FeeEstimateMode::UNSET ;
50
50
// ! Minimum chain depth value for coin availability
51
51
int m_min_depth = DEFAULT_MIN_DEPTH;
52
52
// ! Maximum chain depth value for coin availability
53
53
int m_max_depth = DEFAULT_MAX_DEPTH;
54
54
55
- CCoinControl ()
56
- {
57
- SetNull ();
58
- }
59
-
60
- void SetNull ();
55
+ CCoinControl ();
61
56
62
57
bool HasSelected () const
63
58
{
0 commit comments