diff options
author | Amiti Uttarwar <amiti@uttarwar.org> | 2020-06-02 08:39:47 -0700 |
---|---|---|
committer | Amiti Uttarwar <amiti@uttarwar.org> | 2020-08-07 17:18:16 -0700 |
commit | 49efac5cae7333c6700d9b737d09fae0f3f4d7fa (patch) | |
tree | bcc9a94b9bf862e83769cf34afe56ed396e0b456 /src/net.h | |
parent | d3698b5ee309cf0f0cdfb286d6b30a256d7deae5 (diff) | |
download | bitcoin-49efac5cae7333c6700d9b737d09fae0f3f4d7fa.tar.xz |
[net/refactor] Remove m_manual_connection 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 fFeeler{false}; // If true this node is being used as a short lived feeler. bool m_addr_fetch{false}; - bool m_manual_connection{false}; bool fClient{false}; // set by version message bool m_limited_node{false}; //after BIP159, set by version message const bool fInbound; @@ -793,6 +792,10 @@ public: std::atomic_bool fPauseRecv{false}; std::atomic_bool fPauseSend{false}; + bool IsManualConn() const { + return m_conn_type == ConnectionType::MANUAL; + } + protected: mapMsgCmdSize mapSendBytesPerMsgCmd; mapMsgCmdSize mapRecvBytesPerMsgCmd GUARDED_BY(cs_vRecv); |