mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
Merge pull request #6905
a6efc01Bugfix: Omit wallet-related options from -help when wallet is disabled (Luke Dashjr)5f9260fBugfix: If genproclimit is omitted to RPC setgenerate, don't change it; also show correct default in getmininginfo (Luke Dashjr)420a82fBugfix: Describe dblogsize option correctly (it refers to the wallet database, not memory pool) (Luke Dashjr)caa3d42Bugfix: RPC: blockchain: Display correct defaults in help for verifychain method (Luke Dashjr)
This commit is contained in:
@@ -539,13 +539,15 @@ UniValue gettxout(const UniValue& params, bool fHelp)
|
||||
|
||||
UniValue verifychain(const UniValue& params, bool fHelp)
|
||||
{
|
||||
int nCheckLevel = GetArg("-checklevel", DEFAULT_CHECKLEVEL);
|
||||
int nCheckDepth = GetArg("-checkblocks", DEFAULT_CHECKBLOCKS);
|
||||
if (fHelp || params.size() > 2)
|
||||
throw runtime_error(
|
||||
"verifychain ( checklevel numblocks )\n"
|
||||
"\nVerifies blockchain database.\n"
|
||||
"\nArguments:\n"
|
||||
"1. checklevel (numeric, optional, 0-4, default=3) How thorough the block verification is.\n"
|
||||
"2. numblocks (numeric, optional, default=288, 0=all) The number of blocks to check.\n"
|
||||
"1. checklevel (numeric, optional, 0-4, default=" + strprintf("%d", nCheckLevel) + ") How thorough the block verification is.\n"
|
||||
"2. numblocks (numeric, optional, default=" + strprintf("%d", nCheckDepth) + ", 0=all) The number of blocks to check.\n"
|
||||
"\nResult:\n"
|
||||
"true|false (boolean) Verified or not\n"
|
||||
"\nExamples:\n"
|
||||
@@ -555,8 +557,6 @@ UniValue verifychain(const UniValue& params, bool fHelp)
|
||||
|
||||
LOCK(cs_main);
|
||||
|
||||
int nCheckLevel = GetArg("-checklevel", 3);
|
||||
int nCheckDepth = GetArg("-checkblocks", 288);
|
||||
if (params.size() > 0)
|
||||
nCheckLevel = params[0].get_int();
|
||||
if (params.size() > 1)
|
||||
|
||||
Reference in New Issue
Block a user