diff options
author | Amiti Uttarwar <amiti@uttarwar.org> | 2020-07-28 13:39:38 -0700 |
---|---|---|
committer | Amiti Uttarwar <amiti@uttarwar.org> | 2020-08-07 17:18:16 -0700 |
commit | 60156f5fc40d56bb532278f16ce632c5a8b8035e (patch) | |
tree | 671619f116adb9a6714d1de5b9590a72954a6e13 /src/net.h | |
parent | 7b322df6296609570e368e5f326979279041c11f (diff) | |
download | bitcoin-60156f5fc40d56bb532278f16ce632c5a8b8035e.tar.xz |
[net/refactor] Remove fInbound flag from CNode
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |