Browse Source

net: make CNode's id private

tags/v0.15.1
Cory Fields 4 years ago
parent
commit
0f3471f3ad
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/net.cpp
  2. 1
    1
      src/net.h

+ 1
- 1
src/net.cpp View File

@@ -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),

+ 1
- 1
src/net.h View File

@@ -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;

Loading…
Cancel
Save