mirror of
https://github.com/monero-project/monero.git
synced 2026-01-08 19:31:07 -08:00
rpc: add block size to GET_BLOCK_HEADER RPC
and print it in print_bc
This commit is contained in:
@@ -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;
|
||||
}
|
||||
//------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user