aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.cpp
diff options
context:
space:
mode:
authorNeozaru <neozaru@mailoo.org>2014-06-04 22:50:13 +0200
committerNeozaru <neozaru@mailoo.org>2014-06-04 22:50:13 +0200
commit7fea5645e2e9da312d2b02a1e22087f4b9aba1ce (patch)
tree668c6453431fc8042332ded91eb78da5315036d6 /src/rpc/core_rpc_server.cpp
parentMerge pull request #2 from monero-project/master (diff)
downloadmonero-7fea5645e2e9da312d2b02a1e22087f4b9aba1ce.tar.xz
'getinfo' daemon HTTP-RPC returns 'target_height' for progress estimations
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 e4a7c9773..03af66f4f 100644
--- a/src/rpc/core_rpc_server.cpp
+++ b/src/rpc/core_rpc_server.cpp
@@ -81,6 +81,7 @@ namespace cryptonote
{
CHECK_CORE_BUSY();
res.height = m_core.get_current_blockchain_height();
+ res.target_height = m_core.get_target_blockchain_height();
res.difficulty = m_core.get_blockchain_storage().get_difficulty_for_next_block();
res.tx_count = m_core.get_blockchain_storage().get_total_transactions() - res.height; //without coinbase
res.tx_pool_size = m_core.get_pool_transactions_count();