From 7cf41bbb38db5008f9b69037b88138076d6a6cc5 Mon Sep 17 00:00:00 2001 From: Amiti Uttarwar Date: Fri, 10 Sep 2021 14:32:42 -0600 Subject: [addrman] Change CAddrInfo access Since knowledge of CAddrInfo is limited to callsites that import addrman_impl.h, only objects in addrman.cpp or the tests have access. Thus we can remove calling them friends and make the members public. --- src/addrman_impl.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/addrman_impl.h') diff --git a/src/addrman_impl.h b/src/addrman_impl.h index fec98c416a..8da814b147 100644 --- a/src/addrman_impl.h +++ b/src/addrman_impl.h @@ -17,7 +17,6 @@ public: //! last counted attempt (memory only) int64_t nLastCountAttempt{0}; -private: //! where knowledge about this address first came from CNetAddr source; @@ -36,11 +35,6 @@ private: //! position in vRandom mutable int nRandomPos{-1}; - friend class AddrManImpl; - friend class CAddrManDeterministic; - -public: - SERIALIZE_METHODS(CAddrInfo, obj) { READWRITEAS(CAddress, obj); -- cgit v1.2.3