aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfanquake <fanquake@gmail.com>2020-07-08 21:44:45 +0800
committerfanquake <fanquake@gmail.com>2020-07-08 21:44:45 +0800
commit0b8ba84659b56b12d74587ea31b6062fce887ba3 (patch)
tree5c5c33c05a6541237746f64dd47393e8a49fc199
parentabdfd2d0e3ebec7dbead89317ee9192189a35809 (diff)
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.
-rw-r--r--src/banman.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/banman.cpp b/src/banman.cpp
index 2fabacda0e..8752185a60 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