addrman: fix incorrect named args

24.x
fanquake 3 years ago
parent 67f654ef61
commit 7e22d80af3
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1

@ -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));
} }
} }

Loading…
Cancel
Save