diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-01-06 19:35:59 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-01-06 19:38:27 +0000 |
commit | 9731b4e54f3241869faa614e8c54c69778e51b6d (patch) | |
tree | 75fbebae87571836db3c5db65c8b5deef91c2f53 /src/rpc/core_rpc_server.cpp | |
parent | rpc: add current block size to the getinfo call (diff) | |
download | monero-9731b4e54f3241869faa614e8c54c69778e51b6d.tar.xz |
rpc: add block size to GET_BLOCK_HEADER RPC
and print it in print_bc
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r-- | src/rpc/core_rpc_server.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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; } //------------------------------------------------------------------------------------------------------------------------------ |