diff --git a/src/rpc/masternode.cpp b/src/rpc/masternode.cpp index e04c6cdd5e..56c8b0f0ed 100644 --- a/src/rpc/masternode.cpp +++ b/src/rpc/masternode.cpp @@ -153,7 +153,7 @@ UniValue masternode(const JSONRPCRequest& request) if (strCommand == "list") { JSONRPCRequest newRequest = request; - newRequest.params.clear(); + newRequest.params.setArray(); // forward params but skip "list" for (unsigned int i = 1; i < request.params.size(); i++) { newRequest.params.push_back(request.params[i]);