Bitcoin Core  0.20.99
P2P Digital Currency
Go to the documentation of this file.
1 // Copyright (c) 2018-2019 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or
5 #include <wallet/coincontrol.h>
7 #include <util/system.h>
10 {
12  m_change_type.reset();
13  m_add_inputs = true;
14  fAllowOtherInputs = false;
15  fAllowWatchOnly = false;
17  m_avoid_address_reuse = false;
18  setSelected.clear();
19  m_feerate.reset();
20  fOverrideFeeRate = false;
21  m_confirm_target.reset();
22  m_signal_bip125_rbf.reset();
26 }
bool fAllowWatchOnly
Includes watch only addresses which are solvable.
Definition: coincontrol.h:34
int m_min_depth
Minimum chain depth value for coin availability.
Definition: coincontrol.h:50
bool GetBoolArg(const std::string &strArg, bool fDefault) const
Return boolean argument or default value.
Definition: system.cpp:392
bool fOverrideFeeRate
Override automatic min/max checks on fee, m_feerate must be set if true.
Definition: coincontrol.h:36
bool m_avoid_partial_spends
Avoid partial use of funds sent to a given address.
Definition: coincontrol.h:44
std::set< COutPoint > setSelected
Definition: coincontrol.h:92
Optional< bool > m_signal_bip125_rbf
Override the wallet&#39;s m_signal_rbf if set.
Definition: coincontrol.h:42
Definition: coincontrol.h:16
bool m_add_inputs
If false, only selected inputs are used.
Definition: coincontrol.h:30
void SetNull()
Definition: coincontrol.cpp:9
CTxDestination destChange
Custom change destination, if not set an address is generated.
Definition: coincontrol.h:26
bool fAllowOtherInputs
If false, allows unselected inputs, but requires all selected inputs be used.
Definition: coincontrol.h:32
Definition: coincontrol.h:15
Optional< unsigned int > m_confirm_target
Override the default confirmation target if set.
Definition: coincontrol.h:40
bool m_avoid_address_reuse
Forbids inclusion of dirty (previously used) addresses.
Definition: coincontrol.h:46
Default for -avoidpartialspends.
Definition: coincontrol.h:19
int m_max_depth
Maximum chain depth value for coin availability.
Definition: coincontrol.h:52
Use default settings based on other criteria.
ArgsManager gArgs
Definition: system.cpp:77
FeeEstimateMode m_fee_mode
Fee estimation mode to control arguments to estimateSmartFee.
Definition: coincontrol.h:48
Optional< CFeeRate > m_feerate
Override the wallet&#39;s m_pay_tx_fee if set.
Definition: coincontrol.h:38
Optional< OutputType > m_change_type
Override the default change type if set, ignored if destChange is set.
Definition: coincontrol.h:28