[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.
This commit is contained in:
1 parent
e3f1ea659c
commit
7cf41bbb38
1 file changed
-6
@@ -17,7 +17,6 @@ public:
|
|||||||
//! last counted attempt (memory only)
|
//! last counted attempt (memory only)
|
||||||
int64_t nLastCountAttempt{0};
|
int64_t nLastCountAttempt{0};
|
||||||
|
|
||||||
private:
|
|
||||||
//! where knowledge about this address first came from
|
//! where knowledge about this address first came from
|
||||||
CNetAddr source;
|
CNetAddr source;
|
||||||
|
|
||||||
@@ -36,11 +35,6 @@ private:
|
|||||||
//! position in vRandom
|
//! position in vRandom
|
||||||
mutable int nRandomPos{-1};
|
mutable int nRandomPos{-1};
|
||||||
|
|
||||||
friend class AddrManImpl;
|
|
||||||
friend class CAddrManDeterministic;
|
|
||||||
|
|
||||||
public:
|
|
||||||
|
|
||||||
SERIALIZE_METHODS(CAddrInfo, obj)
|
SERIALIZE_METHODS(CAddrInfo, obj)
|
||||||
{
|
{
|
||||||
READWRITEAS(CAddress, obj);
|
READWRITEAS(CAddress, obj);
|
||||||
|
|||||||
Reference in new issue
Block a user