'getinfo' daemon HTTP-RPC returns 'target_height' for progress estimations

This commit is contained in:
Neozaru
2014-06-04 22:50:13 +02:00
parent 65f4782efd
commit 7fea5645e2
6 changed files with 23 additions and 1 deletions

View File

@@ -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();