Skip to content

Commit 21dedda

Browse files
committed
RPC: fix mnconnect when first param is missing
1 parent 74cc314 commit 21dedda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpc/misc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ const char* CLEAR_CONN = "clear_conn";
772772
**/
773773
UniValue mnconnect(const JSONRPCRequest& request)
774774
{
775-
if (request.fHelp || request.params.size() > 4) {
775+
if (request.fHelp || request.params.empty() || request.params.size() > 4) {
776776
throw std::runtime_error(
777777
"mnconnect \"op_type\" (\"[pro_tx_hash, pro_tx_hash,..]\" llmq_type \"quorum_hash\")\n"
778778
"\nAdd manual quorum members connections for internal testing purposes of the tier two p2p network layer\n"

0 commit comments

Comments
 (0)