aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2021-01-26 22:08:28 +0100
committerJon Atack <jon@atack.com>2021-02-12 22:23:15 +0100
commit24bda56c29800502953c6a8cd69248e60ff9a0a0 (patch)
treea738e46a31f939eb36697becc9d0854d6e1f25c8 /src/net.h
parentbf3189eda65d269fee6a70681ab390bd7cebf7d7 (diff)
net: make CNode::m_inbound_onion public, drop getter, update tests
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/net.h b/src/net.h
index 1678eda8e7..fe44933c6d 100644
--- a/src/net.h
+++ b/src/net.h
@@ -429,6 +429,8 @@ public:
const CAddress addr;
// Bind address of our side of the connection
const CAddress addrBind;
+ //! Whether this peer is an inbound onion, i.e. connected via our Tor onion service.
+ const bool m_inbound_onion{false};
std::atomic<int> nVersion{0};
RecursiveMutex cs_SubVer;
/**
@@ -719,9 +721,6 @@ public:
std::string ConnectionTypeAsString() const { return ::ConnectionTypeAsString(m_conn_type); }
- /** Whether this peer is an inbound onion, e.g. connected via our Tor onion service. */
- bool IsInboundOnion() const { return m_inbound_onion; }
-
private:
const NodeId id;
const uint64_t nLocalHostNonce;
@@ -754,9 +753,6 @@ private:
CService addrLocal GUARDED_BY(cs_addrLocal);
mutable RecursiveMutex cs_addrLocal;
- //! Whether this peer is an inbound onion, e.g. connected via our Tor onion service.
- const bool m_inbound_onion{false};
-
mapMsgCmdSize mapSendBytesPerMsgCmd GUARDED_BY(cs_vSend);
mapMsgCmdSize mapRecvBytesPerMsgCmd GUARDED_BY(cs_vRecv);
};