aboutsummaryrefslogtreecommitdiff
path: root/src/addrman.cpp
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2021-08-13 11:25:49 +0200
committerJon Atack <jon@atack.com>2021-08-13 13:16:55 +0200
commit4844b74ba73ecc6d336a52b4dc4cd144a01b0ea2 (patch)
treee00b60ed0a900f2ebd09c92af88f867e0b85ecb5 /src/addrman.cpp
parent803ef70fd9f65ef800567ff9456fac525bc3e3c2 (diff)
downloadbitcoin-4844b74ba73ecc6d336a52b4dc4cd144a01b0ea2.tar.xz
p2p: log addrman consistency checks
Diffstat (limited to 'src/addrman.cpp')
-rw-r--r--src/addrman.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/addrman.cpp b/src/addrman.cpp
index 8e2fc67569..e8f98f727b 100644
--- a/src/addrman.cpp
+++ b/src/addrman.cpp
@@ -439,6 +439,8 @@ int CAddrMan::Check_() const
if (m_consistency_check_ratio == 0) return 0;
if (insecure_rand.randrange(m_consistency_check_ratio) >= 1) return 0;
+ LogPrint(BCLog::ADDRMAN, "Addrman checks started: new %i, tried %i, total %u\n", nNew, nTried, vRandom.size());
+
std::unordered_set<int> setTried;
std::unordered_map<int, int> mapNew;
@@ -517,6 +519,7 @@ int CAddrMan::Check_() const
if (nKey.IsNull())
return -16;
+ LogPrint(BCLog::ADDRMAN, "Addrman checks completed successfully\n");
return 0;
}