aboutsummaryrefslogtreecommitdiff
path: root/src/addrman.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-01-01 23:10:31 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-05-23 14:46:21 +0300
commit5cd7f8abe3996d303774b6cddeb419337d605d02 (patch)
tree43998131ad7671e0520795ee06a3847b4610bf7f /src/addrman.h
parentbe4171679b8eab8205e04ff86140329bd67878a0 (diff)
downloadbitcoin-5cd7f8abe3996d303774b6cddeb419337d605d02.tar.xz
refactor: Do not expose CAddrMan members as protected without need
Diffstat (limited to 'src/addrman.h')
-rw-r--r--src/addrman.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/addrman.h b/src/addrman.h
index eaedfd318c..9a2cb079a5 100644
--- a/src/addrman.h
+++ b/src/addrman.h
@@ -173,11 +173,10 @@ static const int64_t ADDRMAN_TEST_WINDOW = 40*60; // 40 minutes
class CAddrMan
{
friend class CAddrManTest;
-protected:
+private:
//! critical section to protect the inner data structures
mutable RecursiveMutex cs;
-private:
//! Serialization versions.
enum Format : uint8_t {
V0_HISTORICAL = 0, //!< historic format, before commit e6b343d88
@@ -237,6 +236,7 @@ protected:
//! Source of random numbers for randomization in inner loops
FastRandomContext insecure_rand;
+private:
//! Find an entry.
CAddrInfo* Find(const CNetAddr& addr, int *pnId = nullptr) EXCLUSIVE_LOCKS_REQUIRED(cs);