show new number of MNs on add/remove in logs / move output to debug level
This commit is contained in:
parent
4af7c7411a
commit
7b1efb8997
@ -140,7 +140,7 @@ bool CMasternodeMan::Add(CMasternode &mn)
|
||||
|
||||
if (pmn == NULL)
|
||||
{
|
||||
LogPrintf("CMasternodeMan: Adding new masternode %s\n", mn.addr.ToString().c_str());
|
||||
if(fDebug) LogPrintf("CMasternodeMan: Adding new masternode %s - %i now\n", mn.addr.ToString().c_str(), size() + 1);
|
||||
vMasternodes.push_back(mn);
|
||||
return true;
|
||||
}
|
||||
@ -166,7 +166,7 @@ void CMasternodeMan::CheckAndRemove()
|
||||
vector<CMasternode>::iterator it = vMasternodes.begin();
|
||||
while(it != vMasternodes.end()){
|
||||
if((*it).activeState == 4 || (*it).activeState == 3){
|
||||
LogPrintf("CMasternodeMan: Removing inactive masternode %s\n", (*it).addr.ToString().c_str());
|
||||
if(fDebug) LogPrintf("CMasternodeMan: Removing inactive masternode %s - %i now\n", (*it).addr.ToString().c_str(), size() - 1);
|
||||
it = vMasternodes.erase(it);
|
||||
} else {
|
||||
++it;
|
||||
|
Loading…
Reference in New Issue
Block a user