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/processor.h> | #include <avalanche/processor.h> | ||||
#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> | ||||
#include <checkpoints.h> | #include <checkpoints.h> | ||||
#include <compat/sanity.h> | #include <compat/sanity.h> | ||||
▲ Show 20 Lines • Show All 1,233 Lines • ▼ Show 20 Lines | 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 " | ||||
"(default: none). Should be used in conjunction with -avaproof and " | "(default: none). Should be used in conjunction with -avaproof and " | ||||
"-avamasterkey", | "-avamasterkey", | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::AVALANCHE); | ArgsManager::ALLOW_ANY, OptionsCategory::AVALANCHE); | ||||
argsman.AddArg("-avaproof", | argsman.AddArg("-avaproof", | ||||
"Avalanche proof to be used by this node (default: none)", | "Avalanche proof to be used by this node (default: none)", | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::AVALANCHE); | ArgsManager::ALLOW_ANY, OptionsCategory::AVALANCHE); | ||||
argsman.AddArg( | |||||
"-legacyavaproof", | |||||
strprintf("Use the legacy avalanche proof format (default: %u)", | |||||
AVALANCHE_DEFAULT_LEGACY_PROOF), | |||||
ArgsManager::ALLOW_BOOL, OptionsCategory::AVALANCHE); | |||||
argsman.AddArg("-avamasterkey", | argsman.AddArg("-avamasterkey", | ||||
"Master key associated with the proof. If a proof is " | "Master key associated with the proof. If a proof is " | ||||
"required, this is mandatory.", | "required, this is mandatory.", | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::AVALANCHE); | ArgsManager::ALLOW_ANY, OptionsCategory::AVALANCHE); | ||||
argsman.AddArg("-avasessionkey", "Avalanche session key (default: random)", | argsman.AddArg("-avasessionkey", "Avalanche session key (default: random)", | ||||
ArgsManager::ALLOW_ANY, OptionsCategory::AVALANCHE); | ArgsManager::ALLOW_ANY, OptionsCategory::AVALANCHE); | ||||
// Add the hidden options | // Add the hidden options | ||||
▲ Show 20 Lines • Show All 1,770 Lines • Show Last 20 Lines |