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

View File

@ -545,7 +545,7 @@ namespace cryptonote
if (restricted)
res.database_size = round_up(res.database_size, 5ull* 1024 * 1024 * 1024);
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.busy_syncing = m_p2p.get_payload_object().is_busy_syncing();
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.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.version = MONERO_VERSION;
res.info.version = MONERO_VERSION_FULL;
res.status = Message::STATUS_OK;
res.error_details = "";