Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 855 Lines • ▼ Show 20 Lines | |||||
#endif | #endif | ||||
argsman.AddArg( | argsman.AddArg( | ||||
"-checkblocks=<n>", | "-checkblocks=<n>", | ||||
strprintf("How many blocks to check at startup (default: %u, 0 = all)", | strprintf("How many blocks to check at startup (default: %u, 0 = all)", | ||||
DEFAULT_CHECKBLOCKS), | DEFAULT_CHECKBLOCKS), | ||||
ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, | ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, | ||||
OptionsCategory::DEBUG_TEST); | OptionsCategory::DEBUG_TEST); | ||||
argsman.AddArg( | argsman.AddArg("-checklevel=<n>", | ||||
"-checklevel=<n>", | |||||
strprintf("How thorough the block verification of " | strprintf("How thorough the block verification of " | ||||
"-checkblocks is: " | "-checkblocks is: %s (0-4, default: %u)", | ||||
"level 0 reads the blocks from disk, " | Join(CHECKLEVEL_DOC, ", "), DEFAULT_CHECKLEVEL), | ||||
"level 1 verifies block validity, " | |||||
"level 2 verifies undo data, " | |||||
"level 3 checks disconnection of tip blocks, " | |||||
"and level 4 tries to reconnect the blocks. " | |||||
"Each level includes the checks of the previous levels " | |||||
"(0-4, default: %u)", | |||||
DEFAULT_CHECKLEVEL), | |||||
ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, | ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, | ||||
OptionsCategory::DEBUG_TEST); | OptionsCategory::DEBUG_TEST); | ||||
argsman.AddArg("-checkblockindex", | argsman.AddArg("-checkblockindex", | ||||
strprintf("Do a consistency check for the block tree, " | strprintf("Do a consistency check for the block tree, " | ||||
"chainstate, and other validation data structures " | "chainstate, and other validation data structures " | ||||
"occasionally. (default: %u, regtest: %u)", | "occasionally. (default: %u, regtest: %u)", | ||||
defaultChainParams->DefaultConsistencyChecks(), | defaultChainParams->DefaultConsistencyChecks(), | ||||
regtestChainParams->DefaultConsistencyChecks()), | regtestChainParams->DefaultConsistencyChecks()), | ||||
ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, | ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, | ||||
OptionsCategory::DEBUG_TEST); | OptionsCategory::DEBUG_TEST); | ||||
▲ Show 20 Lines • Show All 2,083 Lines • Show Last 20 Lines |