diff --git a/src/net.cpp b/src/net.cpp index a43d02bbd9..42748dfc86 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -2749,6 +2749,7 @@ CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn // traffic). id(idIn), nLocalHostNonce(nLocalHostNonceIn), + m_conn_type(conn_type_in), nLocalServices(nLocalServicesIn), nMyStartingHeight(nMyStartingHeightIn) { diff --git a/src/net.h b/src/net.h index 6a4ef6ab4b..115effdef9 100644 --- a/src/net.h +++ b/src/net.h @@ -875,6 +875,7 @@ public: private: const NodeId id; const uint64_t nLocalHostNonce; + const ConnectionType m_conn_type; //! Services offered to this peer. //!