mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-25 07:42:54 +02:00
[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:
@@ -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