Bitcoin ABC  0.24.7
P2P Digital Currency
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("-enableavalanche", AVALANCHE_DEFAULT_ENABLED);
11 }
ArgsManager::GetBoolArg
bool GetBoolArg(const std::string &strArg, bool fDefault) const
Return boolean argument or default value.
Definition: system.cpp:517
avalanche.h
AVALANCHE_DEFAULT_ENABLED
static constexpr bool AVALANCHE_DEFAULT_ENABLED
Is avalanche enabled by default.
Definition: avalanche.h:20
system.h
ArgsManager
Definition: system.h:152
isAvalancheEnabled
bool isAvalancheEnabled(const ArgsManager &argsman)
Definition: avalanche.cpp:9