show full version

This commit is contained in:
wowario 2023-01-25 19:41:15 +03:00
parent b83ff851d2
commit 82a019cd12
No known key found for this signature in database
GPG key ID: 793504B449C69220
3 changed files with 3 additions and 3 deletions

View file

@ -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.";
} }

View file

@ -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;

View file

@ -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 = "";