mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Note that this is a breaking change in Core's RPC -- if you add pegins to createfundedpsbt then it won't do coin selection unless you provide the additional new add_inputs option.
28 lines
892 B
C++
28 lines
892 B
C++
// 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()
|
|
{
|
|
destChange.clear();
|
|
m_change_type.reset();
|
|
m_add_inputs = true;
|
|
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_signal_bip125_rbf.reset();
|
|
m_fee_mode = FeeEstimateMode::UNSET;
|
|
m_external_txouts.clear();
|
|
m_external_provider = FlatSigningProvider();
|
|
m_min_depth = DEFAULT_MIN_DEPTH;
|
|
m_max_depth = DEFAULT_MAX_DEPTH;
|
|
}
|