mirror of
https://github.com/monero-project/monero.git
synced 2026-01-13 21:36:32 -08:00
'getinfo' daemon HTTP-RPC returns 'target_height' for progress estimations
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -214,6 +214,7 @@ namespace cryptonote
|
||||
{
|
||||
std::string status;
|
||||
uint64_t height;
|
||||
uint64_t target_height;
|
||||
uint64_t difficulty;
|
||||
uint64_t tx_count;
|
||||
uint64_t tx_pool_size;
|
||||
@@ -226,6 +227,7 @@ namespace cryptonote
|
||||
BEGIN_KV_SERIALIZE_MAP()
|
||||
KV_SERIALIZE(status)
|
||||
KV_SERIALIZE(height)
|
||||
KV_SERIALIZE(target_height)
|
||||
KV_SERIALIZE(difficulty)
|
||||
KV_SERIALIZE(tx_count)
|
||||
KV_SERIALIZE(tx_pool_size)
|
||||
|
||||
Reference in New Issue
Block a user