@@ -30,7 +30,7 @@ static RPCTimerInterface* timerInterface = nullptr;
30
30
/* Map of name to timer. */
31
31
static Mutex g_deadline_timers_mutex;
32
32
static std::map<std::string, std::unique_ptr<RPCTimerBase> > deadlineTimers GUARDED_BY (g_deadline_timers_mutex);
33
- static bool ExecuteCommand (const CRPCCommand& command, const JSONRPCRequest& request, UniValue& result, bool last_handler, std::multimap<std::string, std::vector<UniValue>> mapPlatformRestrictions);
33
+ static bool ExecuteCommand (const CRPCCommand& command, const JSONRPCRequest& request, UniValue& result, bool last_handler, const std::multimap<std::string, std::vector<UniValue>>& mapPlatformRestrictions);
34
34
35
35
// Any commands submitted by this user will have their commands filtered based on the mapPlatformRestrictions
36
36
static const std::string defaultPlatformUser = " platform-user" ;
@@ -503,7 +503,7 @@ UniValue CRPCTable::execute(const JSONRPCRequest &request) const
503
503
throw JSONRPCError (RPC_METHOD_NOT_FOUND, " Method not found" );
504
504
}
505
505
506
- static bool ExecuteCommand (const CRPCCommand& command, const JSONRPCRequest& request, UniValue& result, bool last_handler, std::multimap<std::string, std::vector<UniValue>> mapPlatformRestrictions)
506
+ static bool ExecuteCommand (const CRPCCommand& command, const JSONRPCRequest& request, UniValue& result, bool last_handler, const std::multimap<std::string, std::vector<UniValue>>& mapPlatformRestrictions)
507
507
{
508
508
// Before executing the RPC Command, filter commands from platform rpc user
509
509
if (fMasternodeMode && request.authUser == gArgs .GetArg (" -platform-user" , defaultPlatformUser)) {
0 commit comments