Skip to content

Commit

Permalink
Merge bitcoin#9894: remove 'label' filter for rpc command help
Browse files Browse the repository at this point in the history
6665977 remove 'label' filter for rpc command help (Gregory Sanders)

Tree-SHA512: 0676c55b2893a469cd6785963affbb04126b9a32c130f1bb22dfd233ede6998f695187264e897ced4e0dac48451d9ae0311ebb4f7442096cad632fd22f75080e
  • Loading branch information
laanwj authored and PastaPastaPasta committed Jan 23, 2019
1 parent 8035769 commit 07b50ae
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/rpc/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,7 @@ std::string CRPCTable::help(const std::string& strCommand, const std::string& st
BOOST_FOREACH(const PAIRTYPE(std::string, const CRPCCommand*)& command, vCommands)
{
const CRPCCommand *pcmd = command.second;
std::string strMethod = pcmd->name;
// We already filter duplicates, but these deprecated screw up the sort order
if (strMethod.find("label") != std::string::npos)
continue;
string strMethod = pcmd->name;
if ((strCommand != "" || pcmd->category == "hidden") && strMethod != strCommand)
continue;
try
Expand Down

0 comments on commit 07b50ae

Please sign in to comment.