Bitcoin ABC 0.34.2
P2P Digital Currency
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
6
7#include <common/args.h>
8
11 m_change_type.reset();
12 m_add_inputs = true;
13 fAllowOtherInputs = false;
14 fAllowWatchOnly = false;
16 gArgs.GetBoolArg("-avoidpartialspends", DEFAULT_AVOIDPARTIALSPENDS);
18 setSelected.clear();
19 m_feerate.reset();
20 fOverrideFeeRate = false;
21 m_confirm_target.reset();
24}
ArgsManager gArgs
Definition: args.cpp:39
bool GetBoolArg(const std::string &strArg, bool fDefault) const
Return boolean argument or default value.
Definition: args.cpp:524
std::optional< OutputType > m_change_type
Override the default change type if set, ignored if destChange is set.
Definition: coincontrol.h:24
std::optional< unsigned int > m_confirm_target
Override the default confirmation target if set.
Definition: coincontrol.h:39
int m_max_depth
Maximum chain depth value for coin availability.
Definition: coincontrol.h:47
bool fAllowWatchOnly
Includes watch only addresses which are solvable.
Definition: coincontrol.h:33
int m_min_depth
Minimum chain depth value for coin availability.
Definition: coincontrol.h:45
std::optional< CFeeRate > m_feerate
Override the wallet's m_pay_tx_fee if set.
Definition: coincontrol.h:37
bool fOverrideFeeRate
Override automatic min/max checks on fee, m_feerate must be set if true.
Definition: coincontrol.h:35
bool m_add_inputs
If false, only selected inputs are used.
Definition: coincontrol.h:26
CTxDestination destChange
Definition: coincontrol.h:22
bool m_avoid_address_reuse
Forbids inclusion of dirty (previously used) addresses.
Definition: coincontrol.h:43
void SetNull()
Definition: coincontrol.cpp:9
bool m_avoid_partial_spends
Avoid partial use of funds sent to a given address.
Definition: coincontrol.h:41
bool fAllowOtherInputs
If false, allows unselected inputs, but requires all selected inputs be used.
Definition: coincontrol.h:31
std::set< COutPoint > setSelected
Definition: coincontrol.h:70
const int DEFAULT_MAX_DEPTH
Definition: coincontrol.h:14
static constexpr bool DEFAULT_AVOIDPARTIALSPENDS
Default for -avoidpartialspends.
Definition: coincontrol.h:17
const int DEFAULT_MIN_DEPTH
Definition: coincontrol.h:13