2019-12-30 22:39:22 +13:00
|
|
|
// Copyright (c) 2018-2019 The Bitcoin Core developers
|
2018-07-17 14:26:35 +09:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
#include <wallet/coincontrol.h>
|
|
|
|
|
2018-10-22 15:51:11 -07:00
|
|
|
#include <util/system.h>
|
2018-07-17 14:26:35 +09:00
|
|
|
|
|
|
|
void CCoinControl::SetNull()
|
|
|
|
{
|
|
|
|
destChange = CNoDestination();
|
|
|
|
m_change_type.reset();
|
2019-07-12 13:30:10 +01:00
|
|
|
m_add_inputs = true;
|
2018-07-17 14:26:35 +09:00
|
|
|
fAllowOtherInputs = false;
|
|
|
|
fAllowWatchOnly = false;
|
|
|
|
m_avoid_partial_spends = gArgs.GetBoolArg("-avoidpartialspends", DEFAULT_AVOIDPARTIALSPENDS);
|
2018-07-25 16:24:55 +09:00
|
|
|
m_avoid_address_reuse = false;
|
2018-07-17 14:26:35 +09:00
|
|
|
setSelected.clear();
|
|
|
|
m_feerate.reset();
|
|
|
|
fOverrideFeeRate = false;
|
|
|
|
m_confirm_target.reset();
|
|
|
|
m_signal_bip125_rbf.reset();
|
|
|
|
m_fee_mode = FeeEstimateMode::UNSET;
|
2019-05-09 18:34:38 -07:00
|
|
|
m_min_depth = DEFAULT_MIN_DEPTH;
|
|
|
|
m_max_depth = DEFAULT_MAX_DEPTH;
|
2018-07-17 14:26:35 +09:00
|
|
|
}
|