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:
commit
24183b156b
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user