mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2025-07-09 11:12:09 +00:00
Add start_time to get_info methods and show uptime
This commit is contained in:
parent
4026e7b7de
commit
19be7225cc
5 changed files with 26 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
//------------------------------------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue