Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/blockchain.cpp
Show First 20 Lines • Show All 1,324 Lines • ▼ Show 20 Lines | |||||
static UniValue verifychain(const Config &config, | static UniValue verifychain(const Config &config, | ||||
const JSONRPCRequest &request) { | const JSONRPCRequest &request) { | ||||
RPCHelpMan{ | RPCHelpMan{ | ||||
"verifychain", | "verifychain", | ||||
"Verifies blockchain database.\n", | "Verifies blockchain database.\n", | ||||
{ | { | ||||
{"checklevel", RPCArg::Type::NUM, | {"checklevel", RPCArg::Type::NUM, | ||||
/* default */ strprintf("%d, range=0-4", DEFAULT_CHECKLEVEL), | /* default */ strprintf("%d, range=0-4", DEFAULT_CHECKLEVEL), | ||||
"How thorough the block verification is."}, | strprintf("How thorough the block verification is:\n - %s", | ||||
Join(CHECKLEVEL_DOC, "\n- "))}, | |||||
{"nblocks", RPCArg::Type::NUM, | {"nblocks", RPCArg::Type::NUM, | ||||
/* default */ strprintf("%d, 0=all", DEFAULT_CHECKBLOCKS), | /* default */ strprintf("%d, 0=all", DEFAULT_CHECKBLOCKS), | ||||
"The number of blocks to check."}, | "The number of blocks to check."}, | ||||
}, | }, | ||||
RPCResult{RPCResult::Type::BOOL, "", "Verified or not"}, | RPCResult{RPCResult::Type::BOOL, "", "Verified or not"}, | ||||
RPCExamples{HelpExampleCli("verifychain", "") + | RPCExamples{HelpExampleCli("verifychain", "") + | ||||
HelpExampleRpc("verifychain", "")}, | HelpExampleRpc("verifychain", "")}, | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,643 Lines • Show Last 20 Lines |