Show Monero node in status
This commit is contained in:
@@ -65,6 +65,8 @@ p2pool::p2pool(int argc, char* argv[])
|
||||
throw std::exception();
|
||||
}
|
||||
|
||||
m_hostStr = m_params->m_host;
|
||||
|
||||
if (m_params->m_socks5Proxy.empty()) {
|
||||
if (m_params->m_dns) {
|
||||
bool is_v6;
|
||||
@@ -79,6 +81,16 @@ p2pool::p2pool(int argc, char* argv[])
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
const bool changed = (m_params->m_host != m_hostStr);
|
||||
const std::string rpc_port = ':' + std::to_string(m_params->m_rpcPort);
|
||||
const std::string zmq_port = ":ZMQ:" + std::to_string(m_params->m_zmqPort);
|
||||
m_hostStr += rpc_port + zmq_port;
|
||||
if (changed) {
|
||||
m_hostStr += " (" + m_params->m_host + ')';
|
||||
}
|
||||
}
|
||||
|
||||
hash pub, sec, eph_public_key;
|
||||
generate_keys(pub, sec);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user