Show Monero node in status

This commit is contained in:
SChernykh
2023-01-27 17:42:00 +01:00
parent c989bdb0ea
commit 25d083ef25
4 changed files with 21 additions and 6 deletions
+1
View File
@@ -981,6 +981,7 @@ void SideChain::print_status(bool obtain_sidechain_lock) const
}
LOGINFO(0, "status" <<
"\nMonero node = " << m_pool->host_str() <<
"\nMain chain height = " << m_pool->block_template().height() <<
"\nMain chain hashrate = " << log::Hashrate(network_hashrate) <<
"\nSide chain ID = " << (is_default() ? "default" : (is_mini() ? "mini" : m_consensusIdDisplayStr.c_str())) <<