Bitcoin Core
22.99.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:602
CCoinControl::CCoinControl
CCoinControl()
Definition:
coincontrol.cpp:9
CCoinControl::m_avoid_partial_spends
bool m_avoid_partial_spends
Avoid partial use of funds sent to a given address.
Definition:
coincontrol.h:52
coincontrol.h
DEFAULT_AVOIDPARTIALSPENDS
static constexpr bool DEFAULT_AVOIDPARTIALSPENDS
Default for -avoidpartialspends.
Definition:
coincontrol.h:25
system.h
gArgs
ArgsManager gArgs
Definition:
system.cpp:85
Generated on Mon Nov 8 2021 14:20:08 for Bitcoin Core by
1.9.2