Bitcoin Core
22.99.0
P2P Digital Currency
src
wallet
coincontrol.cpp
Go to the documentation of this file.
1
// Copyright (c) 2018-2021 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
namespace
wallet
{
10
CCoinControl::CCoinControl
()
11
{
12
m_avoid_partial_spends
=
gArgs
.
GetBoolArg
(
"-avoidpartialspends"
,
DEFAULT_AVOIDPARTIALSPENDS
);
13
}
14
}
// namespace wallet
ArgsManager::GetBoolArg
bool GetBoolArg(const std::string &strArg, bool fDefault) const
Return boolean argument or default value.
Definition:
system.cpp:600
wallet
Definition:
node.h:38
wallet::CCoinControl::m_avoid_partial_spends
bool m_avoid_partial_spends
Avoid partial use of funds sent to a given address.
Definition:
coincontrol.h:53
gArgs
ArgsManager gArgs
Definition:
system.cpp:87
system.h
wallet::CCoinControl::CCoinControl
CCoinControl()
Definition:
coincontrol.cpp:10
coincontrol.h
wallet::DEFAULT_AVOIDPARTIALSPENDS
static constexpr bool DEFAULT_AVOIDPARTIALSPENDS
Default for -avoidpartialspends.
Definition:
coincontrol.h:26
Generated on Fri Feb 18 2022 20:03:53 for Bitcoin Core by
1.8.17