From 6b2268162e96bc4fe1a3ebad454996b1d3d4615c Mon Sep 17 00:00:00 2001 From: John Newbery Date: Wed, 1 Sep 2021 12:12:52 +0100 Subject: [netgroupman] Add GetMappedAS() and GetGroup() These currently call through to the CNetAddr methods. The logic will be moved in a future commit. --- src/addrman_impl.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/addrman_impl.h') diff --git a/src/addrman_impl.h b/src/addrman_impl.h index 3db4be6c8d..9d98cdde54 100644 --- a/src/addrman_impl.h +++ b/src/addrman_impl.h @@ -76,15 +76,15 @@ public: } //! Calculate in which "tried" bucket this entry belongs - int GetTriedBucket(const uint256 &nKey, const std::vector &asmap) const; + int GetTriedBucket(const uint256& nKey, const NetGroupManager& netgroupman) const; //! Calculate in which "new" bucket this entry belongs, given a certain source - int GetNewBucket(const uint256 &nKey, const CNetAddr& src, const std::vector &asmap) const; + int GetNewBucket(const uint256& nKey, const CNetAddr& src, const NetGroupManager& netgroupman) const; //! Calculate in which "new" bucket this entry belongs, using its default source - int GetNewBucket(const uint256 &nKey, const std::vector &asmap) const + int GetNewBucket(const uint256& nKey, const NetGroupManager& netgroupman) const { - return GetNewBucket(nKey, source, asmap); + return GetNewBucket(nKey, source, netgroupman); } //! Calculate in which position of a bucket to store this entry. -- cgit v1.2.3