From 7b322df6296609570e368e5f326979279041c11f Mon Sep 17 00:00:00 2001 From: Amiti Uttarwar Date: Tue, 28 Jul 2020 13:17:16 -0700 Subject: [net/refactor] Remove m_addr_fetch member var from CNode --- src/net.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/net.h') diff --git a/src/net.h b/src/net.h index f4fd33ec95..74f96d3a30 100644 --- a/src/net.h +++ b/src/net.h @@ -775,7 +775,6 @@ public: } // This boolean is unusued in actual processing, only present for backward compatibility at RPC/QT level bool m_legacyWhitelisted{false}; - bool m_addr_fetch{false}; bool fClient{false}; // set by version message bool m_limited_node{false}; //after BIP159, set by version message const bool fInbound; @@ -799,6 +798,10 @@ public: return m_conn_type == ConnectionType::FEELER; } + bool IsAddrFetchConn() const { + return m_conn_type == ConnectionType::ADDR_FETCH; + } + protected: mapMsgCmdSize mapSendBytesPerMsgCmd; mapMsgCmdSize mapRecvBytesPerMsgCmd GUARDED_BY(cs_vRecv); -- cgit v1.2.3