mirror of
https://github.com/monero-project/monero.git
synced 2026-08-01 00:20:42 -07:00
rpc: add a command to get info about the current blockchain
About the tip of the main chain, and the last N blocks
This commit is contained in:
@@ -896,6 +896,7 @@ namespace cryptonote
|
||||
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);
|
||||
response.num_txes = blk.tx_hashes.size();
|
||||
return true;
|
||||
}
|
||||
//------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user