From 6df7882029854f0427d84b22081018ae77e27e66 Mon Sep 17 00:00:00 2001 From: Jon Atack Date: Wed, 23 Sep 2020 10:23:44 +0200 Subject: net: add peer network to CNodeStats --- src/net.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/net.cpp') diff --git a/src/net.cpp b/src/net.cpp index 54d572c68c..5db7fc9e73 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -552,6 +552,7 @@ void CNode::copyStats(CNodeStats &stats, const std::vector &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); -- cgit v1.2.3