Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 1,418 Lines • ▼ Show 20 Lines | #endif | ||||
argsman.AddArg( | argsman.AddArg( | ||||
"-maxavalancheoutbound", | "-maxavalancheoutbound", | ||||
strprintf( | strprintf( | ||||
"Set the maximum number of avalanche outbound peers to connect to. " | "Set the maximum number of avalanche outbound peers to connect to. " | ||||
"Note that the -maxconnections option takes precedence (default: " | "Note that the -maxconnections option takes precedence (default: " | ||||
"%u).", | "%u).", | ||||
DEFAULT_MAX_AVALANCHE_OUTBOUND_CONNECTIONS), | DEFAULT_MAX_AVALANCHE_OUTBOUND_CONNECTIONS), | ||||
ArgsManager::ALLOW_INT, OptionsCategory::AVALANCHE); | ArgsManager::ALLOW_INT, OptionsCategory::AVALANCHE); | ||||
argsman.AddArg( | |||||
"-avapolicyearlyblockpenalty", | |||||
strprintf( | |||||
"Enable the avalanche post-consensus policy to apply a " | |||||
"difficulty penalty to early blocks that arrive within a penalty " | |||||
"window measured in " | |||||
"seconds from the previous block (mainnet: %u, testnet: %u, " | |||||
"regtest: %u). Early blocks will be voted " | |||||
"against but will still finalize if the rest of the network " | |||||
"accepts the block. (default: %u)", | |||||
defaultChainParams->GetConsensus().earlyBlockPowTargetPenaltyWindow, | |||||
testnetChainParams->GetConsensus().earlyBlockPowTargetPenaltyWindow, | |||||
regtestChainParams->GetConsensus().earlyBlockPowTargetPenaltyWindow, | |||||
AVALANCHE_POLICY_EARLY_BLOCK_PENALTY_DEFAULT_ENABLED), | |||||
ArgsManager::ALLOW_ANY, OptionsCategory::AVALANCHE); | |||||
// Add the hidden options | // Add the hidden options | ||||
argsman.AddHiddenArgs(hidden_args); | argsman.AddHiddenArgs(hidden_args); | ||||
} | } | ||||
std::string LicenseInfo() { | std::string LicenseInfo() { | ||||
const std::string URL_SOURCE_CODE = | const std::string URL_SOURCE_CODE = | ||||
"<https://github.com/Bitcoin-ABC/bitcoin-abc>"; | "<https://github.com/Bitcoin-ABC/bitcoin-abc>"; | ||||
▲ Show 20 Lines • Show All 1,788 Lines • Show Last 20 Lines |