Skip to content

Commit a749fa5

Browse files
committed
[addrman] Remove AddrMan friends
AddrMan's friends both inherit from AddrMan, so just make the private member protected and remove the friends.
1 parent e70fb87 commit a749fa5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/addrman.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ static constexpr int32_t DEFAULT_ADDRMAN_CONSISTENCY_CHECKS{0};
5353
*/
5454
class AddrMan
5555
{
56+
protected:
5657
const std::unique_ptr<AddrManImpl> m_impl;
5758

5859
public:
@@ -135,9 +136,6 @@ class AddrMan
135136
void SetServices(const CService& addr, ServiceFlags nServices);
136137

137138
const std::vector<bool>& GetAsmap() const;
138-
139-
friend class AddrManTest;
140-
friend class AddrManDeterministic;
141139
};
142140

143141
#endif // BITCOIN_ADDRMAN_H

0 commit comments

Comments
 (0)