From 5b5017e26708c48cc1ba7bd3f1e0f0f70d6c6316 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sun, 8 Jan 2017 11:14:11 +0000 Subject: rpc: add a command to get info about the current blockchain About the tip of the main chain, and the last N blocks --- src/rpc/core_rpc_server.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/rpc/core_rpc_server.cpp') diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index ddf892cae..fc93b3a51 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -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; } //------------------------------------------------------------------------------------------------------------------------------ -- cgit v1.2.3