Bitcoin Core  0.19.99
P2P Digital Currency
coincontrol.cpp
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 http://www.opensource.org/licenses/mit-license.php.
4 
5 #include <wallet/coincontrol.h>
6 
7 #include <util/system.h>
8 
10 {
12  m_change_type.reset();
13  fAllowOtherInputs = false;
14  fAllowWatchOnly = false;
16  m_avoid_address_reuse = false;
17  setSelected.clear();
18  m_feerate.reset();
19  fOverrideFeeRate = false;
20  m_confirm_target.reset();
21  m_signal_bip125_rbf.reset();
25 }
26 
bool fAllowWatchOnly
Includes watch only addresses which are solvable.
Definition: coincontrol.h:32
int m_min_depth
Minimum chain depth value for coin availability.
Definition: coincontrol.h:48
bool GetBoolArg(const std::string &strArg, bool fDefault) const
Return boolean argument or default value.
Definition: system.cpp:383
bool fOverrideFeeRate
Override automatic min/max checks on fee, m_feerate must be set if true.
Definition: coincontrol.h:34
bool m_avoid_partial_spends
Avoid partial use of funds sent to a given address.
Definition: coincontrol.h:42
std::set< COutPoint > setSelected
Definition: coincontrol.h:90
Optional< bool > m_signal_bip125_rbf
Override the wallet&#39;s m_signal_rbf if set.
Definition: coincontrol.h:40
const int DEFAULT_MAX_DEPTH
Definition: coincontrol.h:16
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:30
Use default settings based on other criteria.
const int DEFAULT_MIN_DEPTH
Definition: coincontrol.h:15
Optional< unsigned int > m_confirm_target
Override the default confirmation target if set.
Definition: coincontrol.h:38
bool m_avoid_address_reuse
Forbids inclusion of dirty (previously used) addresses.
Definition: coincontrol.h:44
static constexpr bool DEFAULT_AVOIDPARTIALSPENDS
Default for -avoidpartialspends.
Definition: coincontrol.h:19
int m_max_depth
Maximum chain depth value for coin availability.
Definition: coincontrol.h:50
ArgsManager gArgs
Definition: system.cpp:75
FeeEstimateMode m_fee_mode
Fee estimation mode to control arguments to estimateSmartFee.
Definition: coincontrol.h:46
Optional< CFeeRate > m_feerate
Override the wallet&#39;s m_pay_tx_fee if set.
Definition: coincontrol.h:36
Optional< OutputType > m_change_type
Override the default change type if set, ignored if destChange is set.
Definition: coincontrol.h:28