@@ -160,7 +160,7 @@ string CRPCTable::help(string strCommand) const
160
160
// We already filter duplicates, but these deprecated screw up the sort order
161
161
if (strMethod.find (" label" ) != string::npos)
162
162
continue ;
163
- if (strCommand != " " && strMethod != strCommand)
163
+ if (( strCommand != " " || pcmd-> category == " hidden " ) && strMethod != strCommand)
164
164
continue ;
165
165
#ifdef ENABLE_WALLET
166
166
if (pcmd->reqWallet && !pwalletMain)
@@ -270,8 +270,6 @@ static const CRPCCommand vRPCCommands[] =
270
270
{ " blockchain" , " gettxout" , &gettxout, true , false , false },
271
271
{ " blockchain" , " gettxoutsetinfo" , &gettxoutsetinfo, true , false , false },
272
272
{ " blockchain" , " verifychain" , &verifychain, true , false , false },
273
- { " blockchain" , " invalidateblock" , &invalidateblock, true , true , false },
274
- { " blockchain" , " reconsiderblock" , &reconsiderblock, true , true , false },
275
273
276
274
/* Mining */
277
275
{ " mining" , " getblocktemplate" , &getblocktemplate, true , false , false },
@@ -302,6 +300,10 @@ static const CRPCCommand vRPCCommands[] =
302
300
{ " util" , " estimatefee" , &estimatefee, true , true , false },
303
301
{ " util" , " estimatepriority" , &estimatepriority, true , true , false },
304
302
303
+ /* Not shown in help */
304
+ { " hidden" , " invalidateblock" , &invalidateblock, true , true , false },
305
+ { " hidden" , " reconsiderblock" , &reconsiderblock, true , true , false },
306
+
305
307
#ifdef ENABLE_WALLET
306
308
/* Wallet */
307
309
{ " wallet" , " addmultisigaddress" , &addmultisigaddress, true , false , true },
0 commit comments