Skip to content

Commit f59bd43

Browse files
UdjinM6schinzelh
authored andcommitted
fix gov list filtering bug (#1353)
1 parent 6d2cc99 commit f59bd43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpcgovernance.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ UniValue gobject(const UniValue& params, bool fHelp)
544544
// GET MAIN PARAMETER FOR THIS MODE, VALID OR ALL?
545545

546546
std::string strShow = "valid";
547-
if (params.size() == 2) strShow = params[1].get_str();
547+
if (params.size() >= 2) strShow = params[1].get_str();
548548
if (strShow != "valid" && strShow != "all")
549549
return "Invalid mode, should be 'valid' or 'all'";
550550

0 commit comments

Comments
 (0)