aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorAmiti Uttarwar <amiti@uttarwar.org>2020-07-28 13:39:38 -0700
committerAmiti Uttarwar <amiti@uttarwar.org>2020-08-07 17:18:16 -0700
commit60156f5fc40d56bb532278f16ce632c5a8b8035e (patch)
tree671619f116adb9a6714d1de5b9590a72954a6e13 /src/net.h
parent7b322df6296609570e368e5f326979279041c11f (diff)
downloadbitcoin-60156f5fc40d56bb532278f16ce632c5a8b8035e.tar.xz
[net/refactor] Remove fInbound flag from CNode
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 74f96d3a30..f52fea72be 100644
--- a/src/net.h
+++ b/src/net.h
@@ -777,7 +777,6 @@ public:
bool m_legacyWhitelisted{false};
bool fClient{false}; // set by version message
bool m_limited_node{false}; //after BIP159, set by version message
- const bool fInbound;
std::atomic_bool fSuccessfullyConnected{false};
// Setting fDisconnect to true will cause the node to be disconnected the
// next time DisconnectNodes() runs
@@ -802,6 +801,10 @@ public:
return m_conn_type == ConnectionType::ADDR_FETCH;
}
+ bool IsInboundConn() const {
+ return m_conn_type == ConnectionType::INBOUND;
+ }
+
protected:
mapMsgCmdSize mapSendBytesPerMsgCmd;
mapMsgCmdSize mapRecvBytesPerMsgCmd GUARDED_BY(cs_vRecv);