// 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 #include #include void CCoinControl::SetNull(bool fResetCoinType) { destChange = CNoDestination(); 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_fee_mode = FeeEstimateMode::UNSET; fRequireAllInputs = true; m_discard_feerate.reset(); if (fResetCoinType) { nCoinType = CoinType::ALL_COINS; } }