Fix masternode list (#1893)

This commit is contained in:
UdjinM6 2018-02-05 18:39:52 +03:00 committed by GitHub
parent a6ba82ac9a
commit 063bc55424
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,7 +153,7 @@ UniValue masternode(const JSONRPCRequest& request)
if (strCommand == "list") if (strCommand == "list")
{ {
JSONRPCRequest newRequest = request; JSONRPCRequest newRequest = request;
newRequest.params.clear(); newRequest.params.setArray();
// forward params but skip "list" // forward params but skip "list"
for (unsigned int i = 1; i < request.params.size(); i++) { for (unsigned int i = 1; i < request.params.size(); i++) {
newRequest.params.push_back(request.params[i]); newRequest.params.push_back(request.params[i]);