aboutsummaryrefslogtreecommitdiff
path: root/src/addrman.h
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2021-11-01 15:32:19 +0000
committerJohn Newbery <john@johnnewbery.com>2021-11-09 17:09:50 +0000
commita749fa539ae4330dd5d610286f418156e080e9dd (patch)
tree5f21aea08f27af7bd9a2a5a036b4ed3b7ae7376f /src/addrman.h
parente70fb87a4f8c3b9afab634be64ba7142edd49ddc (diff)
downloadbitcoin-a749fa539ae4330dd5d610286f418156e080e9dd.tar.xz
[addrman] Remove AddrMan friends
AddrMan's friends both inherit from AddrMan, so just make the private member protected and remove the friends.
Diffstat (limited to 'src/addrman.h')
-rw-r--r--src/addrman.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/addrman.h b/src/addrman.h
index a9f697f66f..455d84ca71 100644
--- a/src/addrman.h
+++ b/src/addrman.h
@@ -53,6 +53,7 @@ static constexpr int32_t DEFAULT_ADDRMAN_CONSISTENCY_CHECKS{0};
*/
class AddrMan
{
+protected:
const std::unique_ptr<AddrManImpl> m_impl;
public:
@@ -135,9 +136,6 @@ public:
void SetServices(const CService& addr, ServiceFlags nServices);
const std::vector<bool>& GetAsmap() const;
-
- friend class AddrManTest;
- friend class AddrManDeterministic;
};
#endif // BITCOIN_ADDRMAN_H