aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCory Fields <cory-nospam-@coryfields.com>2017-04-11 12:11:27 -0400
committerCory Fields <cory-nospam-@coryfields.com>2017-05-04 01:04:47 -0400
commit0f3471f3ad349374556e671f27de0824dbe57dd6 (patch)
tree8c11368c0799e9abe0b6f064b2fd10b9308c4a8c
parent9ff0a51164f0e7aa0ce5424aa38ddbddd357fa2c (diff)
net: make CNode's id private
-rw-r--r--src/net.cpp2
-rw-r--r--src/net.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 380b181ae0..c7b1a1e108 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -2623,10 +2623,10 @@ CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn
nTimeConnected(GetSystemTimeInSeconds()),
addr(addrIn),
fInbound(fInboundIn),
- id(idIn),
nKeyedNetGroup(nKeyedNetGroupIn),
addrKnown(5000, 0.001),
filterInventoryKnown(50000, 0.000001),
+ id(idIn),
nLocalHostNonce(nLocalHostNonceIn),
nLocalServices(nLocalServicesIn),
nMyStartingHeight(nMyStartingHeightIn),
diff --git a/src/net.h b/src/net.h
index 4a63ef84e7..8b0ebc0ffe 100644
--- a/src/net.h
+++ b/src/net.h
@@ -611,7 +611,6 @@ public:
CCriticalSection cs_filter;
CBloomFilter* pfilter;
std::atomic<int> nRefCount;
- const NodeId id;
const uint64_t nKeyedNetGroup;
std::atomic_bool fPauseRecv;
@@ -682,6 +681,7 @@ public:
private:
CNode(const CNode&);
void operator=(const CNode&);
+ const NodeId id;
const uint64_t nLocalHostNonce;