clear maps in mnodeman

This commit is contained in:
UdjinM6 2015-03-01 03:04:17 +03:00
parent 2d3426755c
commit 80ce3f5a06
2 changed files with 10 additions and 1 deletions

View File

@ -204,6 +204,15 @@ void CMasternodeMan::CheckAndRemove()
} }
void CMasternodeMan::Clear()
{
LOCK(cs);
vMasternodes.clear();
mAskedUsForMasternodeList.clear();
mWeAskedForMasternodeList.clear();
mWeAskedForMasternodeListEntry.clear();
}
int CMasternodeMan::CountEnabled() int CMasternodeMan::CountEnabled()
{ {
int i = 0; int i = 0;

View File

@ -84,7 +84,7 @@ public:
void CheckAndRemove(); void CheckAndRemove();
// Clear masternode vector // Clear masternode vector
void Clear() { LOCK(cs); vMasternodes.clear(); } void Clear();
int CountEnabled(); int CountEnabled();