diff --git a/src/net.cpp b/src/net.cpp index f5bb63d2f..ea3e34854 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -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()