diff --git a/src/net.cpp b/src/net.cpp index cfc878f0916fa..f6a857921dde7 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -2256,10 +2256,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 740cef41bbade..af8d515a9b8aa 100644 --- a/src/net.h +++ b/src/net.h @@ -593,7 +593,6 @@ class CNode RecursiveMutex cs_filter; std::unique_ptr pfilter; std::atomic nRefCount; - const NodeId id; const uint64_t nKeyedNetGroup; std::atomic_bool fPauseRecv; @@ -656,6 +655,7 @@ class CNode CNode& operator=(const CNode&) = delete; private: + const NodeId id; const uint64_t nLocalHostNonce; // Services offered to this peer const ServiceFlags nLocalServices;