aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.cpp
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2020-11-19 12:51:31 +0000
committerxiphon <xiphon@protonmail.com>2020-11-19 12:51:31 +0000
commit0363476ee3e044bd961c09b6dcdab2260fad38e8 (patch)
treeba001fd134c30cf596f5bdc34014d0e2ae4da307 /src/rpc/core_rpc_server.cpp
parentMerge pull request #6927 (diff)
downloadmonero-0363476ee3e044bd961c09b6dcdab2260fad38e8.tar.xz
rpc: get_info - add 'synchronized' field
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r--src/rpc/core_rpc_server.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp
index 382b5815f..7b71d009f 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -486,6 +486,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;