Commit c55ada5e authored by ekam's avatar ekam

Reinstate RPC masternode count options

parent 907be46b
......@@ -1385,14 +1385,15 @@ UniValue masternode(const JSONRPCRequest& request)
UniValue rtnStr(UniValue::VSTR);
if (request.params.size() == 2)
{
/*if(request.params[1] == "enabled"){
if (request.params[1].get_str() == "enabled") {
return mnodeman.CountEnabled();
//return rtnStr;
}*/
/* if(request.params[1] == "both"){
} else if (request.params[1].get_str() == "both") {
rtnStr = boost::lexical_cast<std::string>(mnodeman.CountEnabled()) + " / " + boost::lexical_cast<std::string>(mnodeman.size());
return rtnStr;
} */
} else {
throw runtime_error(
"invalid parameter\n");
}
}
return mnodeman.size();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment