mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 21:42:47 +01:00
Introduce a hidden category
This commit is contained in:
parent
0dd06b2515
commit
bd9aebf19d
@ -160,7 +160,7 @@ string CRPCTable::help(string strCommand) const
|
|||||||
// We already filter duplicates, but these deprecated screw up the sort order
|
// We already filter duplicates, but these deprecated screw up the sort order
|
||||||
if (strMethod.find("label") != string::npos)
|
if (strMethod.find("label") != string::npos)
|
||||||
continue;
|
continue;
|
||||||
if (strCommand != "" && strMethod != strCommand)
|
if ((strCommand != "" || pcmd->category == "hidden") && strMethod != strCommand)
|
||||||
continue;
|
continue;
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
if (pcmd->reqWallet && !pwalletMain)
|
if (pcmd->reqWallet && !pwalletMain)
|
||||||
@ -270,8 +270,6 @@ static const CRPCCommand vRPCCommands[] =
|
|||||||
{ "blockchain", "gettxout", &gettxout, true, false, false },
|
{ "blockchain", "gettxout", &gettxout, true, false, false },
|
||||||
{ "blockchain", "gettxoutsetinfo", &gettxoutsetinfo, true, false, false },
|
{ "blockchain", "gettxoutsetinfo", &gettxoutsetinfo, true, false, false },
|
||||||
{ "blockchain", "verifychain", &verifychain, true, false, false },
|
{ "blockchain", "verifychain", &verifychain, true, false, false },
|
||||||
{ "blockchain", "invalidateblock", &invalidateblock, true, true, false },
|
|
||||||
{ "blockchain", "reconsiderblock", &reconsiderblock, true, true, false },
|
|
||||||
|
|
||||||
/* Mining */
|
/* Mining */
|
||||||
{ "mining", "getblocktemplate", &getblocktemplate, true, false, false },
|
{ "mining", "getblocktemplate", &getblocktemplate, true, false, false },
|
||||||
@ -302,6 +300,10 @@ static const CRPCCommand vRPCCommands[] =
|
|||||||
{ "util", "estimatefee", &estimatefee, true, true, false },
|
{ "util", "estimatefee", &estimatefee, true, true, false },
|
||||||
{ "util", "estimatepriority", &estimatepriority, true, true, false },
|
{ "util", "estimatepriority", &estimatepriority, true, true, false },
|
||||||
|
|
||||||
|
/* Not shown in help */
|
||||||
|
{ "hidden", "invalidateblock", &invalidateblock, true, true, false },
|
||||||
|
{ "hidden", "reconsiderblock", &reconsiderblock, true, true, false },
|
||||||
|
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
/* Wallet */
|
/* Wallet */
|
||||||
{ "wallet", "addmultisigaddress", &addmultisigaddress, true, false, true },
|
{ "wallet", "addmultisigaddress", &addmultisigaddress, true, false, true },
|
||||||
|
Loading…
Reference in New Issue
Block a user