forked from dashpay/dash
-
Notifications
You must be signed in to change notification settings - Fork 1
/
coincontrol.cpp
29 lines (25 loc) · 892 Bytes
/
coincontrol.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (c) 2018-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <wallet/coincontrol.h>
#include <util/system.h>
void CCoinControl::SetNull(bool fResetCoinType)
{
destChange = CNoDestination();
fAllowOtherInputs = false;
fAllowWatchOnly = false;
m_avoid_partial_spends = gArgs.GetBoolArg("-avoidpartialspends", DEFAULT_AVOIDPARTIALSPENDS);
m_avoid_address_reuse = false;
setSelected.clear();
m_feerate.reset();
fOverrideFeeRate = false;
m_confirm_target.reset();
m_fee_mode = FeeEstimateMode::UNSET;
fRequireAllInputs = true;
m_discard_feerate.reset();
m_min_depth = DEFAULT_MIN_DEPTH;
m_max_depth = DEFAULT_MAX_DEPTH;
if (fResetCoinType) {
nCoinType = CoinType::ALL_COINS;
}
}