From 07b50aefa2a44fd2facc85a008274cebab51e54a Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Thu, 2 Mar 2017 10:03:17 +0100 Subject: [PATCH] Merge #9894: remove 'label' filter for rpc command help 6665977 remove 'label' filter for rpc command help (Gregory Sanders) Tree-SHA512: 0676c55b2893a469cd6785963affbb04126b9a32c130f1bb22dfd233ede6998f695187264e897ced4e0dac48451d9ae0311ebb4f7442096cad632fd22f75080e --- src/rpc/server.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/rpc/server.cpp b/src/rpc/server.cpp index c006b79562f51..f967e1d41ed2d 100644 --- a/src/rpc/server.cpp +++ b/src/rpc/server.cpp @@ -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