mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 20:42:59 +01:00
clear maps in mnodeman
This commit is contained in:
parent
2d3426755c
commit
80ce3f5a06
@ -204,6 +204,15 @@ void CMasternodeMan::CheckAndRemove()
|
||||
|
||||
}
|
||||
|
||||
void CMasternodeMan::Clear()
|
||||
{
|
||||
LOCK(cs);
|
||||
vMasternodes.clear();
|
||||
mAskedUsForMasternodeList.clear();
|
||||
mWeAskedForMasternodeList.clear();
|
||||
mWeAskedForMasternodeListEntry.clear();
|
||||
}
|
||||
|
||||
int CMasternodeMan::CountEnabled()
|
||||
{
|
||||
int i = 0;
|
||||
|
@ -84,7 +84,7 @@ public:
|
||||
void CheckAndRemove();
|
||||
|
||||
// Clear masternode vector
|
||||
void Clear() { LOCK(cs); vMasternodes.clear(); }
|
||||
void Clear();
|
||||
|
||||
int CountEnabled();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user