Merge pull request #456 from UdjinM6/v0.12.0.x_info_mn_count

V0.12.0.x more info for masternode count output/rpcconsole dialog
This commit is contained in:
evan82 2015-07-25 06:32:41 -07:00
commit 24183b156b
3 changed files with 7 additions and 5 deletions

View File

@ -69,8 +69,9 @@ int ClientModel::getNumConnections(unsigned int flags) const
QString ClientModel::getMasternodeCountString() const
{
return QString::number((int)mnodeman.CountEnabled(MIN_POOL_PEER_PROTO_VERSION)) +
" / " + QString::number((int)mnodeman.CountEnabled()) + " / " + QString::number((int)mnodeman.size());
return "Total: " + QString::number((int)mnodeman.size()) +
" (DS compatible: " + QString::number((int)mnodeman.CountEnabled(MIN_POOL_PEER_PROTO_VERSION)) +
" / Enabled: " + QString::number((int)mnodeman.CountEnabled()) + ")";
}
int ClientModel::getNumBlocks() const

View File

@ -325,7 +325,7 @@
<item row="10" column="0">
<widget class="QLabel" name="masternodeCountLabel">
<property name="text">
<string>Masternode Count</string>
<string>Number of Masternodes</string>
</property>
</widget>
</item>

View File

@ -192,9 +192,10 @@ Value masternode(const Array& params, bool fHelp)
{
if(params[1] == "ds") return mnodeman.CountEnabled(MIN_POOL_PEER_PROTO_VERSION);
if(params[1] == "enabled") return mnodeman.CountEnabled();
if(params[1] == "all") return strprintf("%d / %d / %d",
if(params[1] == "all") return strprintf("Total: %d (DS Compatible: %d / Enabled: %d)",
mnodeman.size(),
mnodeman.CountEnabled(MIN_POOL_PEER_PROTO_VERSION),
mnodeman.CountEnabled(), mnodeman.size());
mnodeman.CountEnabled());
}
return mnodeman.size();
}