aboutsummaryrefslogtreecommitdiff
path: root/src/addrman_impl.h
diff options
context:
space:
mode:
authorAmiti Uttarwar <amiti@uttarwar.org>2021-09-10 14:32:42 -0600
committerAmiti Uttarwar <amiti@uttarwar.org>2021-09-28 19:02:34 -0400
commit7cf41bbb38db5008f9b69037b88138076d6a6cc5 (patch)
tree870d32a601570f85fe4e010b8f68a41498772187 /src/addrman_impl.h
parente3f1ea659c9eb1e8be4579923d6acaaab148c2ef (diff)
[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.
Diffstat (limited to 'src/addrman_impl.h')
-rw-r--r--src/addrman_impl.h6
1 files changed, 0 insertions, 6 deletions
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);