aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-01-08 11:14:11 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-01-13 23:21:38 +0000
commit5b5017e26708c48cc1ba7bd3f1e0f0f70d6c6316 (patch)
tree6560c7f8c0177766d1ae0d276bd7de0742972211 /src/rpc/core_rpc_server.cpp
parentMerge pull request #1562 (diff)
downloadmonero-5b5017e26708c48cc1ba7bd3f1e0f0f70d6c6316.tar.xz
rpc: add a command to get info about the current blockchain
About the tip of the main chain, and the last N blocks
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r--src/rpc/core_rpc_server.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}
//------------------------------------------------------------------------------------------------------------------------------