diff options
author | Alexander Blair <snipa@jagtech.io> | 2020-12-04 13:21:36 -0800 |
---|---|---|
committer | Alexander Blair <snipa@jagtech.io> | 2020-12-04 13:21:36 -0800 |
commit | ce564e7ebf3795c6c6a9ba32f04cbae2eb3e9e17 (patch) | |
tree | 1490e205e08e24c9024a849327dacfb1a4e3720c /src | |
parent | Merge pull request #7017 (diff) | |
parent | rpc: get_info - add 'synchronized' field (diff) | |
download | monero-ce564e7ebf3795c6c6a9ba32f04cbae2eb3e9e17.tar.xz |
Merge pull request #7030
0363476ee rpc: get_info - add 'synchronized' field (xiphon)
Diffstat (limited to 'src')
-rw-r--r-- | src/rpc/core_rpc_server.cpp | 1 | ||||
-rw-r--r-- | src/rpc/core_rpc_server_commands_defs.h | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index 98e8e8c66..264a50040 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -498,6 +498,7 @@ namespace cryptonote 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.synchronized = check_core_ready(); res.status = CORE_RPC_STATUS_OK; return true; diff --git a/src/rpc/core_rpc_server_commands_defs.h b/src/rpc/core_rpc_server_commands_defs.h index 8748b0540..10f7aac7a 100644 --- a/src/rpc/core_rpc_server_commands_defs.h +++ b/src/rpc/core_rpc_server_commands_defs.h @@ -88,7 +88,7 @@ namespace cryptonote // advance which version they will stop working with // Don't go over 32767 for any of these #define CORE_RPC_VERSION_MAJOR 3 -#define CORE_RPC_VERSION_MINOR 2 +#define CORE_RPC_VERSION_MINOR 3 #define MAKE_CORE_RPC_VERSION(major,minor) (((major)<<16)|(minor)) #define CORE_RPC_VERSION MAKE_CORE_RPC_VERSION(CORE_RPC_VERSION_MAJOR, CORE_RPC_VERSION_MINOR) @@ -685,6 +685,7 @@ namespace cryptonote uint64_t database_size; bool update_available; std::string version; + bool synchronized; BEGIN_KV_SERIALIZE_MAP() KV_SERIALIZE_PARENT(rpc_access_response_base) @@ -724,6 +725,7 @@ namespace cryptonote KV_SERIALIZE(database_size) KV_SERIALIZE(update_available) KV_SERIALIZE(version) + KV_SERIALIZE(synchronized) END_KV_SERIALIZE_MAP() }; typedef epee::misc_utils::struct_init<response_t> response; |