mirror of
https://github.com/monero-project/monero.git
synced 2026-01-03 16:27:50 -08:00
rpc: expose recent median block size in getinfo
This commit is contained in:
@@ -153,6 +153,7 @@ namespace cryptonote
|
||||
res.testnet = m_testnet;
|
||||
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.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.free_space = m_restricted ? std::numeric_limits<uint64_t>::max() : m_core.get_free_space();
|
||||
@@ -1339,6 +1340,7 @@ namespace cryptonote
|
||||
res.testnet = m_testnet;
|
||||
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.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.free_space = m_restricted ? std::numeric_limits<uint64_t>::max() : m_core.get_free_space();
|
||||
|
||||
Reference in New Issue
Block a user