aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/cryptonote_core.cpp
diff options
context:
space:
mode:
authormonero-project <sempre.amaro@gmail.com>2014-06-05 10:11:07 -0400
committermonero-project <sempre.amaro@gmail.com>2014-06-05 10:11:07 -0400
commit3162fcb70fa609eebfcb1cac004041fbca37a7cc (patch)
tree74041dbb25e23a7b65cc6a32d6d3489c114d8e4c /src/cryptonote_core/cryptonote_core.cpp
parent4492317603b73ed0d1a447b7916d228bd62358fd (diff)
parentde76efe9fe08cb649de661fe1a1211cf016cab87 (diff)
downloadmonzero-core-3162fcb70fa609eebfcb1cac004041fbca37a7cc.tar.gz
monzero-core-3162fcb70fa609eebfcb1cac004041fbca37a7cc.tar.xz
monzero-core-3162fcb70fa609eebfcb1cac004041fbca37a7cc.zip
Merge pull request #24 from Neozaru/master
'getinfo' daemon HTTP-RPC returns 'target_height' for progress estimation
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;
+ }
}