Skip to content

Commit d398bf0

Browse files
reverse order from jsonRequest, strSubCommand
Co-Authored-By: PastaPastaPasta <pasta@dashboost.org>
1 parent 2c477b0 commit d398bf0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/rpc/server.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ bool ParseBoolV(const UniValue& v, const std::string &strName)
226226
* Note: This interface may still be subject to change.
227227
*/
228228

229-
std::string CRPCTable::help(const std::string& strCommand, const JSONRPCRequest& helpreq, const std::string& strSubCommand) const
229+
std::string CRPCTable::help(const std::string& strCommand, const std::string& strSubCommand, const JSONRPCRequest& helpreq) const
230230
{
231231
std::string strRet;
232232
std::string category;
@@ -308,7 +308,7 @@ UniValue help(const JSONRPCRequest& jsonRequest)
308308
if (jsonRequest.params.size() > 1)
309309
strSubCommand = jsonRequest.params[1].get_str();
310310

311-
return tableRPC.help(strCommand, jsonRequest, strSubCommand);
311+
return tableRPC.help(strCommand, strSubCommand, jsonRequest);
312312
}
313313

314314

src/rpc/server.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class CRPCTable
152152
public:
153153
CRPCTable();
154154
const CRPCCommand* operator[](const std::string& name) const;
155-
std::string help(const std::string& name, const JSONRPCRequest& helpreq, const std::string& strSubCommand) const;
155+
std::string help(const std::string& name, const std::string& strSubCommand, const JSONRPCRequest& helpreq) const;
156156

157157
/**
158158
* Execute a method.

0 commit comments

Comments
 (0)