From 192ad1382c6c61ae93d79c757bdda72fc1f17b2d Mon Sep 17 00:00:00 2001 From: sowle Date: Wed, 4 Dec 2024 16:25:17 +0100 Subject: [PATCH] get_connectivity_status: is_remote_node_mode flag implemented --- src/wallet/view_iface.h | 4 +++- src/wallet/wallets_manager.cpp | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/wallet/view_iface.h b/src/wallet/view_iface.h index dce4b5ee..91af1f9e 100644 --- a/src/wallet/view_iface.h +++ b/src/wallet/view_iface.h @@ -484,12 +484,14 @@ public: bool is_online; bool last_daemon_is_disconnected; bool is_server_busy; + bool is_remote_node_mode; uint64_t last_proxy_communicate_timestamp; BEGIN_KV_SERIALIZE_MAP() KV_SERIALIZE(is_online) - KV_SERIALIZE(is_server_busy) KV_SERIALIZE(last_daemon_is_disconnected) + KV_SERIALIZE(is_server_busy) + KV_SERIALIZE(is_remote_node_mode) KV_SERIALIZE(last_proxy_communicate_timestamp) END_KV_SERIALIZE_MAP() }; diff --git a/src/wallet/wallets_manager.cpp b/src/wallet/wallets_manager.cpp index 8859ec8d..b51f929f 100644 --- a/src/wallet/wallets_manager.cpp +++ b/src/wallet/wallets_manager.cpp @@ -1635,10 +1635,11 @@ bool wallets_manager::get_is_remote_daemon_connected() std::string wallets_manager::get_connectivity_status() { - view::general_connectivity_info gci = AUTO_VAL_INIT(gci); + view::general_connectivity_info gci{}; gci.is_online = get_is_remote_daemon_connected(); gci.last_daemon_is_disconnected = m_pproxy_diganostic_info->last_daemon_is_disconnected; gci.is_server_busy = m_pproxy_diganostic_info->is_busy; + gci.is_remote_node_mode = m_remote_node_mode; gci.last_proxy_communicate_timestamp = m_rpc_proxy->get_last_success_interract_time(); return epee::serialization::store_t_to_json(gci); }