|
|
@ -946,16 +946,16 @@ std::optional<AddressPosition> AddrManImpl::FindAddressEntry_(const CAddress& ad
|
|
|
|
|
|
|
|
|
|
|
|
if(addr_info->fInTried) {
|
|
|
|
if(addr_info->fInTried) {
|
|
|
|
int bucket{addr_info->GetTriedBucket(nKey, m_asmap)};
|
|
|
|
int bucket{addr_info->GetTriedBucket(nKey, m_asmap)};
|
|
|
|
return AddressPosition(/*tried=*/true,
|
|
|
|
return AddressPosition(/*tried_in=*/true,
|
|
|
|
/*multiplicity=*/1,
|
|
|
|
/*multiplicity_in=*/1,
|
|
|
|
/*bucket=*/bucket,
|
|
|
|
/*bucket_in=*/bucket,
|
|
|
|
/*position=*/addr_info->GetBucketPosition(nKey, false, bucket));
|
|
|
|
/*position_in=*/addr_info->GetBucketPosition(nKey, false, bucket));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
int bucket{addr_info->GetNewBucket(nKey, m_asmap)};
|
|
|
|
int bucket{addr_info->GetNewBucket(nKey, m_asmap)};
|
|
|
|
return AddressPosition(/*tried=*/false,
|
|
|
|
return AddressPosition(/*tried_in=*/false,
|
|
|
|
/*multiplicity=*/addr_info->nRefCount,
|
|
|
|
/*multiplicity_in=*/addr_info->nRefCount,
|
|
|
|
/*bucket=*/bucket,
|
|
|
|
/*bucket_in=*/bucket,
|
|
|
|
/*position=*/addr_info->GetBucketPosition(nKey, true, bucket));
|
|
|
|
/*position_in=*/addr_info->GetBucketPosition(nKey, true, bucket));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|