5 #ifndef BITCOIN_WALLET_COINCONTROL_H 6 #define BITCOIN_WALLET_COINCONTROL_H 87 txout = ext_it->second;
142 #endif // BITCOIN_WALLET_COINCONTROL_H bool m_avoid_partial_spends
Avoid partial use of funds sent to a given address.
std::optional< unsigned int > m_confirm_target
Override the default confirmation target if set.
std::set< COutPoint > setSelected
CTxDestination destChange
Custom change destination, if not set an address is generated.
bool fAllowWatchOnly
Includes watch only addresses which are solvable.
FlatSigningProvider m_external_provider
SigningProvider that has pubkeys and scripts to do spend size estimation for external inputs...
std::map< COutPoint, int64_t > m_input_weights
Map of COutPoints to the maximum weight for that input.
void SelectExternal(const COutPoint &outpoint, const CTxOut &txout)
bool IsSelected(const COutPoint &output) const
std::optional< OutputType > m_change_type
Override the default change type if set, ignored if destChange is set.
void UnSelect(const COutPoint &output)
void Select(const COutPoint &output)
int64_t GetInputWeight(const COutPoint &outpoint) const
static constexpr bool DEFAULT_AVOIDPARTIALSPENDS
Default for -avoidpartialspends.
std::map< COutPoint, CTxOut > m_external_txouts
bool fOverrideFeeRate
Override automatic min/max checks on fee, m_feerate must be set if true.
void SetInputWeight(const COutPoint &outpoint, int64_t weight)
std::variant< CNoDestination, PKHash, ScriptHash, WitnessV0ScriptHash, WitnessV0KeyHash, WitnessV1Taproot, WitnessUnknown > CTxDestination
A txout script template with a specific destination.
bool IsExternalSelected(const COutPoint &output) const
An output of a transaction.
bool GetExternalOutput(const COutPoint &outpoint, CTxOut &txout) const
An outpoint - a combination of a transaction hash and an index n into its vout.
bool m_avoid_address_reuse
Forbids inclusion of dirty (previously used) addresses.
const int DEFAULT_MAX_DEPTH
const int DEFAULT_MIN_DEPTH
int m_min_depth
Minimum chain depth value for coin availability.
Use default settings based on other criteria.
bool m_include_unsafe_inputs
If false, only safe inputs will be used.
FeeEstimateMode m_fee_mode
Fee estimation mode to control arguments to estimateSmartFee.
void ListSelected(std::vector< COutPoint > &vOutpoints) const
bool m_allow_other_inputs
If true, the selection process can add extra unselected inputs from the wallet while requires all sel...
int m_max_depth
Maximum chain depth value for coin availability.
std::optional< bool > m_signal_bip125_rbf
Override the wallet's m_signal_rbf if set.
std::optional< CFeeRate > m_feerate
Override the wallet's m_pay_tx_fee if set.
bool HasInputWeight(const COutPoint &outpoint) const