From f59bd434ad5e9616b135e9269e5a05cc3dbe9f1b Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Sun, 19 Feb 2017 20:55:37 +0400 Subject: [PATCH] fix gov list filtering bug (#1353) --- src/rpcgovernance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpcgovernance.cpp b/src/rpcgovernance.cpp index a6f93940a..48249e205 100644 --- a/src/rpcgovernance.cpp +++ b/src/rpcgovernance.cpp @@ -544,7 +544,7 @@ UniValue gobject(const UniValue& params, bool fHelp) // GET MAIN PARAMETER FOR THIS MODE, VALID OR ALL? std::string strShow = "valid"; - if (params.size() == 2) strShow = params[1].get_str(); + if (params.size() >= 2) strShow = params[1].get_str(); if (strShow != "valid" && strShow != "all") return "Invalid mode, should be 'valid' or 'all'";