From 9731b4e54f3241869faa614e8c54c69778e51b6d Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 6 Jan 2017 19:35:59 +0000 Subject: rpc: add block size to GET_BLOCK_HEADER RPC and print it in print_bc --- src/rpc/core_rpc_server.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/rpc/core_rpc_server.cpp') diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index a9e780a9f..6ca01ed2c 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -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; } //------------------------------------------------------------------------------------------------------------------------------ -- cgit v1.2.3