Browse Source

Merge #9894: remove 'label' filter for rpc command help

6665977 remove 'label' filter for rpc command help (Gregory Sanders)

Tree-SHA512: 0676c55b2893a469cd6785963affbb04126b9a32c130f1bb22dfd233ede6998f695187264e897ced4e0dac48451d9ae0311ebb4f7442096cad632fd22f75080e
0.15
Wladimir J. van der Laan 8 years ago
parent
commit
0496e15aef
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 3
      src/rpc/server.cpp

3
src/rpc/server.cpp

@ -193,9 +193,6 @@ std::string CRPCTable::help(const std::string& strCommand) const
{ {
const CRPCCommand *pcmd = command.second; const CRPCCommand *pcmd = command.second;
string strMethod = pcmd->name; string strMethod = pcmd->name;
// We already filter duplicates, but these deprecated screw up the sort order
if (strMethod.find("label") != string::npos)
continue;
if ((strCommand != "" || pcmd->category == "hidden") && strMethod != strCommand) if ((strCommand != "" || pcmd->category == "hidden") && strMethod != strCommand)
continue; continue;
try try

Loading…
Cancel
Save