mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Add CNetAddr::IsPrivacyNet() and CNode::IsConnectedThroughPrivacyNet()
Co-authored-by: Vasil Dimov <vd@FreeBSD.org>
This commit is contained in:
@@ -620,6 +620,11 @@ Network CNode::ConnectedThroughNetwork() const
|
||||
return m_inbound_onion ? NET_ONION : addr.GetNetClass();
|
||||
}
|
||||
|
||||
bool CNode::IsConnectedThroughPrivacyNet() const
|
||||
{
|
||||
return m_inbound_onion || addr.IsPrivacyNet();
|
||||
}
|
||||
|
||||
#undef X
|
||||
#define X(name) stats.name = name
|
||||
void CNode::CopyStats(CNodeStats& stats)
|
||||
|
||||
Reference in New Issue
Block a user