aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2020-09-23 10:23:44 +0200
committerJon Atack <jon@atack.com>2020-10-14 14:55:55 +0200
commit6df7882029854f0427d84b22081018ae77e27e66 (patch)
tree0d4b6ecedae58e3a28b8768817a544808f841e51 /src/net.cpp
parentf79a4a895279ba4efa43494270633f94f7d18342 (diff)
net: add peer network to CNodeStats
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp1
1 files changed, 1 insertions, 0 deletions
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<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);