Skip to content

Commit 5cd7f8a

Browse files
committed
refactor: Do not expose CAddrMan members as protected without need
1 parent be41716 commit 5cd7f8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/addrman.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,10 @@ static const int64_t ADDRMAN_TEST_WINDOW = 40*60; // 40 minutes
173173
class CAddrMan
174174
{
175175
friend class CAddrManTest;
176-
protected:
176+
private:
177177
//! critical section to protect the inner data structures
178178
mutable RecursiveMutex cs;
179179

180-
private:
181180
//! Serialization versions.
182181
enum Format : uint8_t {
183182
V0_HISTORICAL = 0, //!< historic format, before commit e6b343d88
@@ -237,6 +236,7 @@ friend class CAddrManTest;
237236
//! Source of random numbers for randomization in inner loops
238237
FastRandomContext insecure_rand;
239238

239+
private:
240240
//! Find an entry.
241241
CAddrInfo* Find(const CNetAddr& addr, int *pnId = nullptr) EXCLUSIVE_LOCKS_REQUIRED(cs);
242242

0 commit comments

Comments
 (0)