mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
Few small log output fixes:
- fix DumpMasternodes log output (wasn't really working) - add log output on CMasternodeMan::Add - slightly edit CMasternodeMan::CheckAndRemove log output
This commit is contained in:
parent
101754420e
commit
e7bf8d0fe6
@ -123,8 +123,7 @@ void DumpMasternodes()
|
|||||||
CMasternodeDB mndb;
|
CMasternodeDB mndb;
|
||||||
mndb.Write(mnodeman);
|
mndb.Write(mnodeman);
|
||||||
|
|
||||||
LogPrint("masternode", "Flushed %d masternodes to masternodes.dat %dms\n",
|
LogPrintf("Flushed %d masternodes to masternodes.dat %dms\n", mnodeman.size(), GetTimeMillis() - nStart);
|
||||||
mnodeman.size(), GetTimeMillis() - nStart);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CMasternodeMan::CMasternodeMan() {}
|
CMasternodeMan::CMasternodeMan() {}
|
||||||
@ -140,6 +139,7 @@ bool CMasternodeMan::Add(CMasternode &mn)
|
|||||||
|
|
||||||
if (pmn == NULL)
|
if (pmn == NULL)
|
||||||
{
|
{
|
||||||
|
LogPrintf("CMasternodeMan: Adding new masternode %s\n", mn.addr.ToString().c_str());
|
||||||
vMasternodes.push_back(mn);
|
vMasternodes.push_back(mn);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -165,7 +165,7 @@ void CMasternodeMan::CheckAndRemove()
|
|||||||
vector<CMasternode>::iterator it = vMasternodes.begin();
|
vector<CMasternode>::iterator it = vMasternodes.begin();
|
||||||
while(it != vMasternodes.end()){
|
while(it != vMasternodes.end()){
|
||||||
if((*it).activeState == 4 || (*it).activeState == 3){
|
if((*it).activeState == 4 || (*it).activeState == 3){
|
||||||
LogPrintf("Removing inactive masternode %s\n", (*it).addr.ToString().c_str());
|
LogPrintf("CMasternodeMan: Removing inactive masternode %s\n", (*it).addr.ToString().c_str());
|
||||||
it = vMasternodes.erase(it);
|
it = vMasternodes.erase(it);
|
||||||
} else {
|
} else {
|
||||||
++it;
|
++it;
|
||||||
|
Loading…
Reference in New Issue
Block a user