mirror of
https://github.com/dashpay/dash.git
synced 2024-12-24 19:42:46 +01:00
fix gov list filtering bug (#1353)
This commit is contained in:
parent
6d2cc99e35
commit
f59bd434ad
@ -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'";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user