aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorAmiti Uttarwar <amiti@uttarwar.org>2020-06-02 08:39:47 -0700
committerAmiti Uttarwar <amiti@uttarwar.org>2020-08-07 17:18:16 -0700
commit49efac5cae7333c6700d9b737d09fae0f3f4d7fa (patch)
treebcc9a94b9bf862e83769cf34afe56ed396e0b456 /src/net.h
parentd3698b5ee309cf0f0cdfb286d6b30a256d7deae5 (diff)
downloadbitcoin-49efac5cae7333c6700d9b737d09fae0f3f4d7fa.tar.xz
[net/refactor] Remove m_manual_connection 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 115effdef9..0c6e939771 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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);