Skip to content

Commit 4844b74

Browse files
committed
p2p: log addrman consistency checks
1 parent 803ef70 commit 4844b74

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/addrman.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,8 @@ int CAddrMan::Check_() const
439439
if (m_consistency_check_ratio == 0) return 0;
440440
if (insecure_rand.randrange(m_consistency_check_ratio) >= 1) return 0;
441441

442+
LogPrint(BCLog::ADDRMAN, "Addrman checks started: new %i, tried %i, total %u\n", nNew, nTried, vRandom.size());
443+
442444
std::unordered_set<int> setTried;
443445
std::unordered_map<int, int> mapNew;
444446

@@ -517,6 +519,7 @@ int CAddrMan::Check_() const
517519
if (nKey.IsNull())
518520
return -16;
519521

522+
LogPrint(BCLog::ADDRMAN, "Addrman checks completed successfully\n");
520523
return 0;
521524
}
522525

0 commit comments

Comments
 (0)