mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2025-07-08 19:01:43 +00:00
rpc: add block size to GET_BLOCK_HEADER RPC
and print it in print_bc
This commit is contained in:
parent
9188b3468c
commit
9731b4e54f
3 changed files with 6 additions and 2 deletions
|
@ -892,6 +892,7 @@ namespace cryptonote
|
|||
response.hash = string_tools::pod_to_hex(hash);
|
||||
response.difficulty = m_core.get_blockchain_storage().block_difficulty(height);
|
||||
response.reward = get_block_reward(blk);
|
||||
response.block_size = m_core.get_blockchain_storage().get_db().get_block_size(height);
|
||||
return true;
|
||||
}
|
||||
//------------------------------------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue