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

@@ -188,7 +188,7 @@ static RPCHelpMan getpeerinfo()
if (!(stats.addrLocal.empty())) {
obj.pushKV("addrlocal", stats.addrLocal);
}
obj.pushKV("network", stats.m_network);
obj.pushKV("network", GetNetworkName(stats.m_network));
if (stats.m_mapped_as != 0) {
obj.pushKV("mapped_as", uint64_t(stats.m_mapped_as));
}