From 82a019cd12a55dda3bfd1584a0c82e0801962a58 Mon Sep 17 00:00:00 2001 From: wowario Date: Wed, 25 Jan 2023 19:41:15 +0300 Subject: [PATCH] show full version --- src/daemon/rpc_command_executor.cpp | 2 +- src/rpc/core_rpc_server.cpp | 2 +- src/rpc/daemon_handler.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/daemon/rpc_command_executor.cpp b/src/daemon/rpc_command_executor.cpp index b6364ff77..2fc8b47ca 100644 --- a/src/daemon/rpc_command_executor.cpp +++ b/src/daemon/rpc_command_executor.cpp @@ -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."; } diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index 826cb63fa..b643bd075 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -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; diff --git a/src/rpc/daemon_handler.cpp b/src/rpc/daemon_handler.cpp index 0466c92c2..5db8ee913 100644 --- a/src/rpc/daemon_handler.cpp +++ b/src/rpc/daemon_handler.cpp @@ -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 = "";