mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2025-07-08 02:45:08 +00:00
rpc: add current block size to the getinfo call
This commit is contained in:
parent
dd580d7bc7
commit
9188b3468c
2 changed files with 5 additions and 1 deletions
|
@ -143,6 +143,7 @@ namespace cryptonote
|
|||
res.grey_peerlist_size = m_p2p.get_peerlist_manager().get_gray_peers_count();
|
||||
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.status = CORE_RPC_STATUS_OK;
|
||||
return true;
|
||||
}
|
||||
|
@ -1161,6 +1162,7 @@ namespace cryptonote
|
|||
res.grey_peerlist_size = m_p2p.get_peerlist_manager().get_gray_peers_count();
|
||||
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.status = CORE_RPC_STATUS_OK;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue