|
|
|
@ -596,7 +596,8 @@ void CConnman::SetBanned(const banmap_t &banMap)
@@ -596,7 +596,8 @@ void CConnman::SetBanned(const banmap_t &banMap)
|
|
|
|
|
void CConnman::SweepBanned() |
|
|
|
|
{ |
|
|
|
|
int64_t now = GetTime(); |
|
|
|
|
|
|
|
|
|
bool notifyUI = false; |
|
|
|
|
{ |
|
|
|
|
LOCK(cs_setBanned); |
|
|
|
|
banmap_t::iterator it = setBanned.begin(); |
|
|
|
|
while(it != setBanned.end()) |
|
|
|
@ -607,14 +608,15 @@ void CConnman::SweepBanned()
@@ -607,14 +608,15 @@ void CConnman::SweepBanned()
|
|
|
|
|
{ |
|
|
|
|
setBanned.erase(it++); |
|
|
|
|
setBannedIsDirty = true; |
|
|
|
|
notifyUI = true; |
|
|
|
|
LogPrint(BCLog::NET, "%s: Removed banned node ip/subnet from banlist.dat: %s\n", __func__, subNet.ToString()); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
++it; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
// update UI
|
|
|
|
|
if(setBannedIsDirty && clientInterface) { |
|
|
|
|
if(notifyUI && clientInterface) { |
|
|
|
|
clientInterface->BannedListChanged(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|