aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/cryptonote_core.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/cryptonote_core/cryptonote_core.cpp
parent65f4782efd556ccd42b71a114349d544426b2691 (diff)
downloadmonzero-core-7fea5645e2e9da312d2b02a1e22087f4b9aba1ce.tar.gz
monzero-core-7fea5645e2e9da312d2b02a1e22087f4b9aba1ce.tar.xz
monzero-core-7fea5645e2e9da312d2b02a1e22087f4b9aba1ce.zip
'getinfo' daemon HTTP-RPC returns 'target_height' for progress estimations
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp
index b6bfa09c8..b2389fce2 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -28,7 +28,8 @@ namespace cryptonote
m_blockchain_storage(m_mempool),
m_miner(this),
m_miner_address(boost::value_initialized<account_public_address>()),
- m_starter_message_showed(false)
+ m_starter_message_showed(false),
+ m_target_blockchain_height(0)
{
set_cryptonote_protocol(pprotocol);
}
@@ -516,4 +517,11 @@ namespace cryptonote
return true;
}
//-----------------------------------------------------------------------------------------------
+ void core::set_target_blockchain_height(uint64_t target_blockchain_height) {
+ m_target_blockchain_height = target_blockchain_height;
+ }
+ //-----------------------------------------------------------------------------------------------
+ uint64_t core::get_target_blockchain_height() const {
+ return m_target_blockchain_height;
+ }
}