banlist: log post-swept banlist size at startup

We are currently logging the size of the banlist before SweepBanned()
has been called, meaning the value may be incorrect.
This commit is contained in:
fanquake 2020-07-08 21:44:45 +08:00
parent abdfd2d0e3
commit 0b8ba84659
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ BanMan::BanMan(fs::path ban_file, CClientUIInterface* client_interface, int64_t
SweepBanned(); // sweep out unused entries
LogPrint(BCLog::NET, "Loaded %d banned node ips/subnets from banlist.dat %dms\n",
banmap.size(), GetTimeMillis() - n_start);
m_banned.size(), GetTimeMillis() - n_start);
} else {
LogPrintf("Invalid or missing banlist.dat; recreating\n");
SetBannedSetDirty(true); // force write