mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-10 20:03:34 -03:00
p2p: log addrman consistency checks
This commit is contained in:
parent
803ef70fd9
commit
4844b74ba7
1 changed files with 3 additions and 0 deletions
|
@ -439,6 +439,8 @@ int CAddrMan::Check_() const
|
||||||
if (m_consistency_check_ratio == 0) return 0;
|
if (m_consistency_check_ratio == 0) return 0;
|
||||||
if (insecure_rand.randrange(m_consistency_check_ratio) >= 1) 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_set<int> setTried;
|
||||||
std::unordered_map<int, int> mapNew;
|
std::unordered_map<int, int> mapNew;
|
||||||
|
|
||||||
|
@ -517,6 +519,7 @@ int CAddrMan::Check_() const
|
||||||
if (nKey.IsNull())
|
if (nKey.IsNull())
|
||||||
return -16;
|
return -16;
|
||||||
|
|
||||||
|
LogPrint(BCLog::ADDRMAN, "Addrman checks completed successfully\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue