aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorAmiti Uttarwar <[email protected]>2020-04-30 11:21:33 -0700
committerAmiti Uttarwar <[email protected]>2020-08-07 17:18:16 -0700
commitd3698b5ee309cf0f0cdfb286d6b30a256d7deae5 (patch)
tree2ec1c0ac6f890d583c9e16331e81361470ed249b /src/net.cpp
parent[doc] Describe different connection types (diff)
downloaddiscoin-d3698b5ee309cf0f0cdfb286d6b30a256d7deae5.tar.xz
discoin-d3698b5ee309cf0f0cdfb286d6b30a256d7deae5.zip
[net/refactor] Add connection type as a member var to CNode
- Directly maintaining the connection type prevents having to deduce it from several flags.
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp
index a43d02bbd..42748dfc8 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)
{