Bitcoin ABC
0.26.3
P2P Digital Currency
src
avalanche
avalanche.cpp
Go to the documentation of this file.
1
// Copyright (c) 2021 The Bitcoin 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 <
avalanche/avalanche.h
>
6
7
#include <
util/system.h
>
8
9
bool
isAvalancheEnabled
(
const
ArgsManager
&argsman) {
10
return
argsman.
GetBoolArg
(
"-avalanche"
,
AVALANCHE_DEFAULT_ENABLED
);
11
}
isAvalancheEnabled
bool isAvalancheEnabled(const ArgsManager &argsman)
Definition:
avalanche.cpp:9
avalanche.h
AVALANCHE_DEFAULT_ENABLED
static constexpr bool AVALANCHE_DEFAULT_ENABLED
Is avalanche enabled by default.
Definition:
avalanche.h:22
ArgsManager
Definition:
system.h:145
ArgsManager::GetBoolArg
bool GetBoolArg(const std::string &strArg, bool fDefault) const
Return boolean argument or default value.
Definition:
system.cpp:601
system.h
Generated on Sun Oct 1 2023 02:36:49 for Bitcoin ABC by
1.9.1