|
|
@ -1247,6 +1247,7 @@ namespace cryptonote
|
|
|
|
response.depth = m_core.get_current_blockchain_height() - height - 1;
|
|
|
|
response.depth = m_core.get_current_blockchain_height() - height - 1;
|
|
|
|
response.hash = string_tools::pod_to_hex(hash);
|
|
|
|
response.hash = string_tools::pod_to_hex(hash);
|
|
|
|
response.difficulty = m_core.get_blockchain_storage().block_difficulty(height);
|
|
|
|
response.difficulty = m_core.get_blockchain_storage().block_difficulty(height);
|
|
|
|
|
|
|
|
response.cumulative_difficulty = response.block_weight = m_core.get_blockchain_storage().get_db().get_block_cumulative_difficulty(height);
|
|
|
|
response.reward = get_block_reward(blk);
|
|
|
|
response.reward = get_block_reward(blk);
|
|
|
|
response.block_size = response.block_weight = m_core.get_blockchain_storage().get_db().get_block_weight(height);
|
|
|
|
response.block_size = response.block_weight = m_core.get_blockchain_storage().get_db().get_block_weight(height);
|
|
|
|
response.num_txes = blk.tx_hashes.size();
|
|
|
|
response.num_txes = blk.tx_hashes.size();
|
|
|
|