mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
net: Add CNode::ConnectedThroughNetwork member function
This commit is contained in:
parent
d4dde24034
commit
49fba9c1aa
4 changed files with 19 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue