BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
coincontrol.cpp
Go to the documentation of this file.
1 // Copyright (c) 2018 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.h>
8 
10 {
12  m_change_type.reset();
13  fAllowOtherInputs = false;
14  fAllowWatchOnly = false;
15  m_avoid_partial_spends = gArgs.GetBoolArg("-avoidpartialspends", DEFAULT_AVOIDPARTIALSPENDS);
16  setSelected.clear();
17  m_feerate.reset();
18  fOverrideFeeRate = false;
19  m_confirm_target.reset();
20  m_signal_bip125_rbf.reset();
22 }
23 
bool fAllowWatchOnly
Includes watch only addresses which are solvable.
Definition: coincontrol.h:26
boost::optional< unsigned int > m_confirm_target
Override the default confirmation target if set.
Definition: coincontrol.h:32
boost::optional< OutputType > m_change_type
Override the default change type if set, ignored if destChange is set.
Definition: coincontrol.h:22
bool GetBoolArg(const std::string &strArg, bool fDefault) const
Return boolean argument or default value.
Definition: util.cpp:542
bool fOverrideFeeRate
Override automatic min/max checks on fee, m_feerate must be set if true.
Definition: coincontrol.h:28
boost::optional< CFeeRate > m_feerate
Override the wallet&#39;s m_pay_tx_fee if set.
Definition: coincontrol.h:30
bool m_avoid_partial_spends
Avoid partial use of funds sent to a given address.
Definition: coincontrol.h:36
std::set< COutPoint > setSelected
Definition: coincontrol.h:78
void SetNull()
Definition: coincontrol.cpp:9
CTxDestination destChange
Custom change destination, if not set an address is generated.
Definition: coincontrol.h:20
bool fAllowOtherInputs
If false, allows unselected inputs, but requires all selected inputs be used.
Definition: coincontrol.h:24
Use default settings based on other criteria.
boost::optional< bool > m_signal_bip125_rbf
Override the wallet&#39;s m_signal_rbf if set.
Definition: coincontrol.h:34
ArgsManager gArgs
Definition: util.cpp:88
FeeEstimateMode m_fee_mode
Fee estimation mode to control arguments to estimateSmartFee.
Definition: coincontrol.h:38