aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorAmiti Uttarwar <amiti@uttarwar.org>2020-04-30 11:21:33 -0700
committerAmiti Uttarwar <amiti@uttarwar.org>2020-08-07 17:18:16 -0700
commitd3698b5ee309cf0f0cdfb286d6b30a256d7deae5 (patch)
tree2ec1c0ac6f890d583c9e16331e81361470ed249b /src/net.h
parent46578c03e92a55925308363ccdad04dcfc820d96 (diff)
downloadbitcoin-d3698b5ee309cf0f0cdfb286d6b30a256d7deae5.tar.xz
[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.h')
-rw-r--r--src/net.h1
1 files changed, 1 insertions, 0 deletions
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.
//!