Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto | // Copyright (c) 2009-2010 Satoshi Nakamoto | ||||
// Copyright (c) 2009-2018 The Bitcoin Core developers | // Copyright (c) 2009-2018 The Bitcoin Core 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. | ||||
#if defined(HAVE_CONFIG_H) | #if defined(HAVE_CONFIG_H) | ||||
#include <config/bitcoin-config.h> | #include <config/bitcoin-config.h> | ||||
#endif | #endif | ||||
#include <init.h> | #include <init.h> | ||||
#include <addrman.h> | #include <addrman.h> | ||||
#include <amount.h> | #include <amount.h> | ||||
#include <avalanche/avalanche.h> | #include <avalanche/avalanche.h> | ||||
#include <avalanche/peermanager.h> // For AVALANCHE_DEFAULT_PROOF_REPLACEMENT_ENABLED | |||||
deadalnix: This was a good tell that this wasn't the right place to put… | |||||
#include <avalanche/processor.h> | #include <avalanche/processor.h> | ||||
#include <avalanche/proof.h> // For AVALANCHE_LEGACY_PROOF_DEFAULT | #include <avalanche/proof.h> // For AVALANCHE_LEGACY_PROOF_DEFAULT | ||||
#include <avalanche/validation.h> | #include <avalanche/validation.h> | ||||
#include <banman.h> | #include <banman.h> | ||||
#include <blockdb.h> | #include <blockdb.h> | ||||
#include <blockfilter.h> | #include <blockfilter.h> | ||||
#include <chain.h> | #include <chain.h> | ||||
#include <chainparams.h> | #include <chainparams.h> | ||||
▲ Show 20 Lines • Show All 1,242 Lines • ▼ Show 20 Lines | #endif | ||||
argsman.AddArg( | argsman.AddArg( | ||||
"-enableavalanche", | "-enableavalanche", | ||||
strprintf("Enable avalanche (default: %u)", AVALANCHE_DEFAULT_ENABLED), | strprintf("Enable avalanche (default: %u)", AVALANCHE_DEFAULT_ENABLED), | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::AVALANCHE); | ArgsManager::ALLOW_ANY, OptionsCategory::AVALANCHE); | ||||
argsman.AddArg("-enableavalanchepeerdiscovery", | argsman.AddArg("-enableavalanchepeerdiscovery", | ||||
strprintf("Enable avalanche peer discovery (default: %u)", | strprintf("Enable avalanche peer discovery (default: %u)", | ||||
AVALANCHE_DEFAULT_PEER_DISCOVERY_ENABLED), | AVALANCHE_DEFAULT_PEER_DISCOVERY_ENABLED), | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::AVALANCHE); | ArgsManager::ALLOW_ANY, OptionsCategory::AVALANCHE); | ||||
argsman.AddArg("-enableavalancheproofreplacement", | |||||
strprintf("Enable avalanche proof replacement (default: %u)", | |||||
AVALANCHE_DEFAULT_PROOF_REPLACEMENT_ENABLED), | |||||
ArgsManager::ALLOW_BOOL, OptionsCategory::AVALANCHE); | |||||
argsman.AddArg( | argsman.AddArg( | ||||
"-avacooldown", | "-avacooldown", | ||||
strprintf("Mandatory cooldown between two avapoll (default: %u)", | strprintf("Mandatory cooldown between two avapoll (default: %u)", | ||||
AVALANCHE_DEFAULT_COOLDOWN), | AVALANCHE_DEFAULT_COOLDOWN), | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::AVALANCHE); | ArgsManager::ALLOW_ANY, OptionsCategory::AVALANCHE); | ||||
argsman.AddArg( | argsman.AddArg( | ||||
"-avadelegation", | "-avadelegation", | ||||
"Avalanche proof delegation to the master key used by this node " | "Avalanche proof delegation to the master key used by this node " | ||||
▲ Show 20 Lines • Show All 1,833 Lines • Show Last 20 Lines |
This was a good tell that this wasn't the right place to put AVALANCHE_DEFAULT_PROOF_REPLACEMENT_ENABLED in.