mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
net: Add CNode::ConnectedThroughNetwork member function
This commit is contained in:
@@ -539,6 +539,11 @@ void CNode::SetAddrLocal(const CService& addrLocalIn) {
|
||||
}
|
||||
}
|
||||
|
||||
Network CNode::ConnectedThroughNetwork() const
|
||||
{
|
||||
return IsInboundConn() && m_inbound_onion ? NET_ONION : addr.GetNetClass();
|
||||
}
|
||||
|
||||
#undef X
|
||||
#define X(name) stats.name = name
|
||||
void CNode::copyStats(CNodeStats &stats, const std::vector<bool> &m_asmap)
|
||||
|
||||
Reference in New Issue
Block a user