diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-09-07 13:28:06 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-09-07 13:28:40 +0000 |
commit | cd647612b06dc84a9d24433d383f7ed3d3fc0b40 (patch) | |
tree | 853ca6b2f919522151f1d9ef1bac879d89134b27 | |
parent | Merge pull request #4290 (diff) | |
download | monero-cd647612b06dc84a9d24433d383f7ed3d3fc0b40.tar.xz |
rpc: don't include start time if restricted
-rw-r--r-- | src/rpc/core_rpc_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index 0a6daf8f0..3bc68c2cc 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -198,7 +198,7 @@ namespace cryptonote res.block_size_limit = m_core.get_blockchain_storage().get_current_cumulative_blocksize_limit(); res.block_size_median = m_core.get_blockchain_storage().get_current_cumulative_blocksize_median(); res.status = CORE_RPC_STATUS_OK; - res.start_time = (uint64_t)m_core.get_start_time(); + res.start_time = m_restricted ? 0 : (uint64_t)m_core.get_start_time(); res.free_space = m_restricted ? std::numeric_limits<uint64_t>::max() : m_core.get_free_space(); res.offline = m_core.offline(); res.bootstrap_daemon_address = m_bootstrap_daemon_address; |