From 0b8ba84659b56b12d74587ea31b6062fce887ba3 Mon Sep 17 00:00:00 2001 From: fanquake Date: Wed, 8 Jul 2020 21:44:45 +0800 Subject: [PATCH] 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. --- src/banman.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/banman.cpp b/src/banman.cpp index 2fabacda0ef..8752185a60d 100644 --- a/src/banman.cpp +++ b/src/banman.cpp @@ -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