Expose integral m_conn_type in CNodeStats, remove m_conn_type_string

This commit is contained in:
Jon Atack
2021-01-02 10:44:03 +01:00
committed by MarcoFalke
parent 4b8b71e630
commit faecb74562
3 changed files with 8 additions and 7 deletions

View File

@@ -249,7 +249,7 @@ static RPCHelpMan getpeerinfo()
recvPerMsgCmd.pushKV(i.first, i.second);
}
obj.pushKV("bytesrecv_per_msg", recvPerMsgCmd);
obj.pushKV("connection_type", stats.m_conn_type_string);
obj.pushKV("connection_type", ConnectionTypeAsString(stats.m_conn_type));
ret.push_back(obj);
}