rpc: add block size to GET_BLOCK_HEADER RPC

and print it in print_bc
This commit is contained in:
moneromooo-monero 2017-01-06 19:35:59 +00:00
parent 9188b3468c
commit 9731b4e54f
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
3 changed files with 6 additions and 2 deletions

View file

@ -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;
}
//------------------------------------------------------------------------------------------------------------------------------