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