Bitcoin Core
22.0.0
P2P Digital Currency
src
wallet
coincontrol.cpp
Go to the documentation of this file.
1
// Copyright (c) 2018-2019 The Bitcoin Core developers
2
// Distributed under the MIT software license, see the accompanying
3
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
4
5
#include <
wallet/coincontrol.h
>
6
7
#include <
util/system.h
>
8
9
CCoinControl::CCoinControl
()
10
{
11
m_avoid_partial_spends
=
gArgs
.
GetBoolArg
(
"-avoidpartialspends"
,
DEFAULT_AVOIDPARTIALSPENDS
);
12
}
ArgsManager::GetBoolArg
bool GetBoolArg(const std::string &strArg, bool fDefault) const
Return boolean argument or default value.
Definition:
system.cpp:600
CCoinControl::m_avoid_partial_spends
bool m_avoid_partial_spends
Avoid partial use of funds sent to a given address.
Definition:
coincontrol.h:47
coincontrol.h
CCoinControl::CCoinControl
CCoinControl()
Definition:
coincontrol.cpp:9
DEFAULT_AVOIDPARTIALSPENDS
static constexpr bool DEFAULT_AVOIDPARTIALSPENDS
Default for -avoidpartialspends.
Definition:
coincontrol.h:20
system.h
gArgs
ArgsManager gArgs
Definition:
system.cpp:84
Generated on Thu Sep 9 2021 12:00:00 for Bitcoin Core by
1.8.14