diff options
author | Miguel Herranz <miguel@ipglider.org> | 2017-01-09 00:50:29 +0100 |
---|---|---|
committer | Miguel Herranz <miguel@ipglider.org> | 2017-01-12 00:15:21 +0100 |
commit | 19be7225cccecfd871095a434f185fcb7695cfaa (patch) | |
tree | 158e9abfed2184acea473aa718b914c2cb6988eb /src/rpc/core_rpc_server.cpp | |
parent | Merge pull request #1544 (diff) | |
download | monero-19be7225cccecfd871095a434f185fcb7695cfaa.tar.xz |
Add start_time to get_info methods and show uptime
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r-- | src/rpc/core_rpc_server.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index 6ca01ed2c..fa4b63644 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -145,6 +145,7 @@ namespace cryptonote res.cumulative_difficulty = m_core.get_blockchain_storage().get_db().get_block_cumulative_difficulty(res.height - 1); res.block_size_limit = m_core.get_blockchain_storage().get_current_cumulative_blocksize_limit(); res.status = CORE_RPC_STATUS_OK; + res.start_time = (uint64_t)m_core.get_start_time(); return true; } //------------------------------------------------------------------------------------------------------------------------------ @@ -1165,6 +1166,7 @@ namespace cryptonote res.cumulative_difficulty = m_core.get_blockchain_storage().get_db().get_block_cumulative_difficulty(res.height - 1); res.block_size_limit = m_core.get_blockchain_storage().get_current_cumulative_blocksize_limit(); res.status = CORE_RPC_STATUS_OK; + res.start_time = (uint64_t)m_core.get_start_time(); return true; } //------------------------------------------------------------------------------------------------------------------------------ |