From 063bc5542419973c61558a2bc9347689cf302cef Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Mon, 5 Feb 2018 18:39:52 +0300 Subject: [PATCH] Fix `masternode list` (#1893) --- src/rpc/masternode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/masternode.cpp b/src/rpc/masternode.cpp index e04c6cdd5..56c8b0f0e 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]);