File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -528,6 +528,10 @@ friend class CAddrManTest;
528
528
const bool restore_bucketing{nUBuckets == ADDRMAN_NEW_BUCKET_COUNT &&
529
529
serialized_asmap_checksum == supplied_asmap_checksum};
530
530
531
+ if (!restore_bucketing) {
532
+ LogPrint (BCLog::ADDRMAN, " Bucketing method was updated, re-bucketing addrman entries from disk\n " );
533
+ }
534
+
531
535
for (auto bucket_entry : bucket_entries) {
532
536
int bucket{bucket_entry.first };
533
537
const int entry_index{bucket_entry.second };
@@ -546,7 +550,6 @@ friend class CAddrManTest;
546
550
} else {
547
551
// In case the new table data cannot be used (bucket count wrong or new asmap),
548
552
// try to give them a reference based on their primary source address.
549
- LogPrint (BCLog::ADDRMAN, " Bucketing method was updated, re-bucketing addrman entries from disk\n " );
550
553
bucket = info.GetNewBucket (nKey, m_asmap);
551
554
bucket_position = info.GetBucketPosition (nKey, true , bucket);
552
555
if (vvNew[bucket][bucket_position] == -1 ) {
You can’t perform that action at this time.
0 commit comments