show full version
This commit is contained in:
parent
a93dcc1962
commit
e5016a6f8e
|
@ -2533,7 +2533,7 @@ bool t_rpc_command_executor::version()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (res.version.empty() || !cryptonote::rpc::is_version_string_valid(res.version))
|
if (res.version.empty())
|
||||||
{
|
{
|
||||||
tools::fail_msg_writer() << "The daemon software version is not available.";
|
tools::fail_msg_writer() << "The daemon software version is not available.";
|
||||||
}
|
}
|
||||||
|
|
|
@ -545,7 +545,7 @@ namespace cryptonote
|
||||||
if (restricted)
|
if (restricted)
|
||||||
res.database_size = round_up(res.database_size, 5ull* 1024 * 1024 * 1024);
|
res.database_size = round_up(res.database_size, 5ull* 1024 * 1024 * 1024);
|
||||||
res.update_available = restricted ? false : m_core.is_update_available();
|
res.update_available = restricted ? false : m_core.is_update_available();
|
||||||
res.version = restricted ? "" : MONERO_VERSION_FULL;
|
res.version = MONERO_VERSION_FULL;
|
||||||
res.synchronized = check_core_ready();
|
res.synchronized = check_core_ready();
|
||||||
res.busy_syncing = m_p2p.get_payload_object().is_busy_syncing();
|
res.busy_syncing = m_p2p.get_payload_object().is_busy_syncing();
|
||||||
res.restricted = restricted;
|
res.restricted = restricted;
|
||||||
|
|
|
@ -540,7 +540,7 @@ namespace rpc
|
||||||
res.info.block_size_median = res.info.block_weight_median = m_core.get_blockchain_storage().get_current_cumulative_block_weight_median();
|
res.info.block_size_median = res.info.block_weight_median = m_core.get_blockchain_storage().get_current_cumulative_block_weight_median();
|
||||||
res.info.adjusted_time = m_core.get_blockchain_storage().get_adjusted_time(res.info.height);
|
res.info.adjusted_time = m_core.get_blockchain_storage().get_adjusted_time(res.info.height);
|
||||||
res.info.start_time = (uint64_t)m_core.get_start_time();
|
res.info.start_time = (uint64_t)m_core.get_start_time();
|
||||||
res.info.version = MONERO_VERSION;
|
res.info.version = MONERO_VERSION_FULL;
|
||||||
|
|
||||||
res.status = Message::STATUS_OK;
|
res.status = Message::STATUS_OK;
|
||||||
res.error_details = "";
|
res.error_details = "";
|
||||||
|
|
Loading…
Reference in New Issue