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:
moneromooo-monero
2017-01-13 23:21:38 +00:00
parent 2806842200
commit 5b5017e267
7 changed files with 134 additions and 1 deletions
+1
View File
@@ -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;
}
//------------------------------------------------------------------------------------------------------------------------------