mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
Ignore incorrectly-serialized banlist.dat entries
This commit is contained in:
@@ -184,7 +184,7 @@ void BanMan::SweepBanned()
|
||||
while (it != m_banned.end()) {
|
||||
CSubNet sub_net = (*it).first;
|
||||
CBanEntry ban_entry = (*it).second;
|
||||
if (now > ban_entry.nBanUntil) {
|
||||
if (!sub_net.IsValid() || now > ban_entry.nBanUntil) {
|
||||
m_banned.erase(it++);
|
||||
m_is_dirty = true;
|
||||
notify_ui = true;
|
||||
|
||||
Reference in New Issue
Block a user