mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-02 23:42:33 +02:00
[addrman] Remove AddrMan friends
AddrMan's friends both inherit from AddrMan, so just make the private member protected and remove the friends.
This commit is contained in:
parent
e70fb87a4f
commit
a749fa539a
@ -53,6 +53,7 @@ static constexpr int32_t DEFAULT_ADDRMAN_CONSISTENCY_CHECKS{0};
|
|||||||
*/
|
*/
|
||||||
class AddrMan
|
class AddrMan
|
||||||
{
|
{
|
||||||
|
protected:
|
||||||
const std::unique_ptr<AddrManImpl> m_impl;
|
const std::unique_ptr<AddrManImpl> m_impl;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -135,9 +136,6 @@ public:
|
|||||||
void SetServices(const CService& addr, ServiceFlags nServices);
|
void SetServices(const CService& addr, ServiceFlags nServices);
|
||||||
|
|
||||||
const std::vector<bool>& GetAsmap() const;
|
const std::vector<bool>& GetAsmap() const;
|
||||||
|
|
||||||
friend class AddrManTest;
|
|
||||||
friend class AddrManDeterministic;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // BITCOIN_ADDRMAN_H
|
#endif // BITCOIN_ADDRMAN_H
|
||||||
|
Loading…
Reference in New Issue
Block a user