mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52: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 CMasternodeMan::CountEnabled()
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user