Skip to content

Commit e1d6e2a

Browse files
committed
Merge #12622: net: Correct addrman logging
b4db76c net: Correct addrman logging (Wladimir J. van der Laan) Pull request description: These were introduced in #9037. Found by @theuni (bitcoin/bitcoin#9037 (review)). Tree-SHA512: 9b5153da8a8e5d4ddf9513a5c453f9609cffd4df2924fd48c7b36c1b1055748c7077d4fc0e70be62ca36af87df7f621a744bb374a234baba271ce4982a240825
2 parents cd5e438 + b4db76c commit e1d6e2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/addrman.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ void CAddrMan::Good_(const CService& addr, bool test_before_evict, int64_t nTime
239239

240240
// Will moving this address into tried evict another entry?
241241
if (test_before_evict && (vvTried[tried_bucket][tried_bucket_pos] != -1)) {
242-
LogPrint(BCLog::ADDRMAN, "addrman", "Collision inserting element into tried table, moving %s to m_tried_collisions=%d\n", addr.ToString(), m_tried_collisions.size());
242+
LogPrint(BCLog::ADDRMAN, "Collision inserting element into tried table, moving %s to m_tried_collisions=%d\n", addr.ToString(), m_tried_collisions.size());
243243
if (m_tried_collisions.size() < ADDRMAN_SET_TRIED_COLLISION_SIZE) {
244244
m_tried_collisions.insert(nId);
245245
}
@@ -565,7 +565,7 @@ void CAddrMan::ResolveCollisions_()
565565

566566
// Give address at least 60 seconds to successfully connect
567567
if (GetAdjustedTime() - info_old.nLastTry > 60) {
568-
LogPrint(BCLog::ADDRMAN, "addrman", "Swapping %s for %s in tried table\n", info_new.ToString(), info_old.ToString());
568+
LogPrint(BCLog::ADDRMAN, "Swapping %s for %s in tried table\n", info_new.ToString(), info_old.ToString());
569569

570570
// Replaces an existing address already in the tried table with the new address
571571
Good_(info_new, false, GetAdjustedTime());

0 commit comments

Comments
 (0)