Skip to content

Commit 7b1efb8

Browse files
committed
show new number of MNs on add/remove in logs / move output to debug level
1 parent 4af7c74 commit 7b1efb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/masternodeman.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ bool CMasternodeMan::Add(CMasternode &mn)
140140

141141
if (pmn == NULL)
142142
{
143-
LogPrintf("CMasternodeMan: Adding new masternode %s\n", mn.addr.ToString().c_str());
143+
if(fDebug) LogPrintf("CMasternodeMan: Adding new masternode %s - %i now\n", mn.addr.ToString().c_str(), size() + 1);
144144
vMasternodes.push_back(mn);
145145
return true;
146146
}
@@ -166,7 +166,7 @@ void CMasternodeMan::CheckAndRemove()
166166
vector<CMasternode>::iterator it = vMasternodes.begin();
167167
while(it != vMasternodes.end()){
168168
if((*it).activeState == 4 || (*it).activeState == 3){
169-
LogPrintf("CMasternodeMan: Removing inactive masternode %s\n", (*it).addr.ToString().c_str());
169+
if(fDebug) LogPrintf("CMasternodeMan: Removing inactive masternode %s - %i now\n", (*it).addr.ToString().c_str(), size() - 1);
170170
it = vMasternodes.erase(it);
171171
} else {
172172
++it;

0 commit comments

Comments
 (0)