@@ -153,8 +153,8 @@ void CRPCTable::InitPlatformRestrictions()
153
153
{" getblockhash" , {}},
154
154
{" getblockcount" , {}},
155
155
{" getbestchainlock" , {}},
156
- {" quorum" , { " sign" , static_cast <uint8_t >(Params ().GetConsensus ().llmqTypePlatform )}},
157
- {" quorum" , {" verify " }},
156
+ {" quorum sign" , { static_cast <uint8_t >(Params ().GetConsensus ().llmqTypePlatform )}},
157
+ {" quorum verify " , {}},
158
158
{" submitchainlock" , {}},
159
159
{" verifyislock" , {}},
160
160
};
@@ -535,7 +535,9 @@ static bool ExecuteCommand(const CRPCCommand& command, const JSONRPCRequest& req
535
535
// Before executing the RPC Command, filter commands from platform rpc user
536
536
if (node.mn_activeman && request.authUser == gArgs .GetArg (" -platform-user" , defaultPlatformUser)) {
537
537
// replace this with structured binding in c++20
538
- const auto & it = mapPlatformRestrictions.equal_range (request.strMethod );
538
+ std::string command_name = command.name ;
539
+ if (!command.subname .empty ()) command_name += " " + command.subname ;
540
+ const auto & it = mapPlatformRestrictions.equal_range (command_name);
539
541
const auto & allowed_begin = it.first ;
540
542
const auto & allowed_end = it.second ;
541
543
/* *
@@ -545,8 +547,8 @@ static bool ExecuteCommand(const CRPCCommand& command, const JSONRPCRequest& req
545
547
*
546
548
* if request.strMethod == "quorum":
547
549
* [
548
- * "quorum", [" sign", platformLlmqType],
549
- * "quorum", ["verify" ]
550
+ * "quorum sign", [ platformLlmqType],
551
+ * "quorum verify ", []
550
552
* ]
551
553
* if request.strMethod == "verifyislock"
552
554
* [
0 commit comments