Skip to content

Commit

Permalink
reverse order from jsonRequest, strSubCommand
Browse files Browse the repository at this point in the history
Co-Authored-By: PastaPastaPasta <[email protected]>
  • Loading branch information
UdjinM6 and PastaPastaPasta authored Jan 28, 2019
1 parent 2c477b0 commit d398bf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/rpc/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ bool ParseBoolV(const UniValue& v, const std::string &strName)
* Note: This interface may still be subject to change.
*/

std::string CRPCTable::help(const std::string& strCommand, const JSONRPCRequest& helpreq, const std::string& strSubCommand) const
std::string CRPCTable::help(const std::string& strCommand, const std::string& strSubCommand, const JSONRPCRequest& helpreq) const
{
std::string strRet;
std::string category;
Expand Down Expand Up @@ -308,7 +308,7 @@ UniValue help(const JSONRPCRequest& jsonRequest)
if (jsonRequest.params.size() > 1)
strSubCommand = jsonRequest.params[1].get_str();

return tableRPC.help(strCommand, jsonRequest, strSubCommand);
return tableRPC.help(strCommand, strSubCommand, jsonRequest);
}


Expand Down
2 changes: 1 addition & 1 deletion src/rpc/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ class CRPCTable
public:
CRPCTable();
const CRPCCommand* operator[](const std::string& name) const;
std::string help(const std::string& name, const JSONRPCRequest& helpreq, const std::string& strSubCommand) const;
std::string help(const std::string& name, const std::string& strSubCommand, const JSONRPCRequest& helpreq) const;

/**
* Execute a method.
Expand Down

0 comments on commit d398bf0

Please sign in to comment.