Skip to content

Commit 0f3471f

Browse files
committed
net: make CNode's id private
1 parent 9ff0a51 commit 0f3471f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2623,10 +2623,10 @@ CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn
26232623
nTimeConnected(GetSystemTimeInSeconds()),
26242624
addr(addrIn),
26252625
fInbound(fInboundIn),
2626-
id(idIn),
26272626
nKeyedNetGroup(nKeyedNetGroupIn),
26282627
addrKnown(5000, 0.001),
26292628
filterInventoryKnown(50000, 0.000001),
2629+
id(idIn),
26302630
nLocalHostNonce(nLocalHostNonceIn),
26312631
nLocalServices(nLocalServicesIn),
26322632
nMyStartingHeight(nMyStartingHeightIn),

src/net.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,6 @@ class CNode
611611
CCriticalSection cs_filter;
612612
CBloomFilter* pfilter;
613613
std::atomic<int> nRefCount;
614-
const NodeId id;
615614

616615
const uint64_t nKeyedNetGroup;
617616
std::atomic_bool fPauseRecv;
@@ -682,6 +681,7 @@ class CNode
682681
private:
683682
CNode(const CNode&);
684683
void operator=(const CNode&);
684+
const NodeId id;
685685

686686

687687
const uint64_t nLocalHostNonce;

0 commit comments

Comments
 (0)