Changeset View
Changeset View
Standalone View
Standalone View
src/avalanche/avalanche.cpp
| // Copyright (c) 2021 The Bitcoin developers | // Copyright (c) 2021 The Bitcoin developers | ||||
| // Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
| // file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
| #include <avalanche/avalanche.h> | #include <avalanche/avalanche.h> | ||||
| #include <util/system.h> | #include <util/system.h> | ||||
| bool isAvalancheEnabled(const ArgsManager &argsman) { | bool isAvalancheEnabled(const ArgsManager &argsman) { | ||||
| return argsman.GetBoolArg("-enableavalanche", AVALANCHE_DEFAULT_ENABLED); | return argsman.GetBoolArg("-enableavalanche", AVALANCHE_DEFAULT_ENABLED); | ||||
| } | } | ||||
| std::chrono::seconds quorumCheckInterval(const ArgsManager &argsman) { | |||||
| return std::chrono::seconds(argsman.GetArg( | |||||
| "-avaquorumcheckinterval", AVALANCHE_DEFAULT_QUORUM_CHECK_INTERVAL)); | |||||
| } | |||||
| No newline at end of file | |||||