net: add peer network to CNodeStats

This commit is contained in:
Jon Atack
2020-09-23 10:23:44 +02:00
parent f79a4a8952
commit 6df7882029
2 changed files with 3 additions and 0 deletions

View File

@@ -552,6 +552,7 @@ void CNode::copyStats(CNodeStats &stats, const std::vector<bool> &m_asmap)
X(nServices);
X(addr);
X(addrBind);
stats.m_network = GetNetworkName(ConnectedThroughNetwork());
stats.m_mapped_as = addr.GetMappedAS(m_asmap);
if (m_tx_relay != nullptr) {
LOCK(m_tx_relay->cs_filter);