net, rpc: change CNodeStats::m_network from string to Network

This commit is contained in:
Jon Atack
2020-12-25 14:25:45 +01:00
parent cc592a85ea
commit af9103cc79
3 changed files with 4 additions and 4 deletions

View File

@@ -566,7 +566,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_network = ConnectedThroughNetwork();
stats.m_mapped_as = addr.GetMappedAS(m_asmap);
if (m_tx_relay != nullptr) {
LOCK(m_tx_relay->cs_filter);