Update banning functions from Core 0.13

This commit is contained in:
Pieter Wuille
2016-06-24 16:35:21 +02:00
committed by lateminer
parent 620e64b25f
commit 4b61ea916b

View File

@@ -637,6 +637,7 @@ void CNode::SweepBanned()
{
setBanned.erase(it++);
setBannedIsDirty = true;
LogPrint("net", "%s: Removed banned node ip/subnet from banlist.dat: %s\n", __func__, subNet.ToString());
}
else
++it;
@@ -1567,12 +1568,7 @@ void DumpAddresses()
void DumpData()
{
DumpAddresses();
if (CNode::BannedSetIsDirty())
{
DumpBanlist();
CNode::SetBannedSetDirty(false);
}
DumpBanlist();
}
void static ProcessOneShot()