mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 15:39:05 +01:00
Add -avoidpartialspends and m_avoid_partial_spends
This commit is contained in:
23
src/wallet/coincontrol.cpp
Normal file
23
src/wallet/coincontrol.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
// Copyright (c) 2018 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.h>
|
||||
|
||||
void CCoinControl::SetNull()
|
||||
{
|
||||
destChange = CNoDestination();
|
||||
m_change_type.reset();
|
||||
fAllowOtherInputs = false;
|
||||
fAllowWatchOnly = false;
|
||||
m_avoid_partial_spends = gArgs.GetBoolArg("-avoidpartialspends", DEFAULT_AVOIDPARTIALSPENDS);
|
||||
setSelected.clear();
|
||||
m_feerate.reset();
|
||||
fOverrideFeeRate = false;
|
||||
m_confirm_target.reset();
|
||||
m_signal_bip125_rbf.reset();
|
||||
m_fee_mode = FeeEstimateMode::UNSET;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user