Skip to content

Commit 7cf41bb

Browse files
committed
[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.
1 parent e3f1ea6 commit 7cf41bb

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/addrman_impl.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ class CAddrInfo : public CAddress
1717
//! last counted attempt (memory only)
1818
int64_t nLastCountAttempt{0};
1919

20-
private:
2120
//! where knowledge about this address first came from
2221
CNetAddr source;
2322

@@ -36,11 +35,6 @@ class CAddrInfo : public CAddress
3635
//! position in vRandom
3736
mutable int nRandomPos{-1};
3837

39-
friend class AddrManImpl;
40-
friend class CAddrManDeterministic;
41-
42-
public:
43-
4438
SERIALIZE_METHODS(CAddrInfo, obj)
4539
{
4640
READWRITEAS(CAddress, obj);

0 commit comments

Comments
 (0)