aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeozaru <neozaru@mailoo.org>2014-06-04 23:10:33 +0200
committerNeozaru <neozaru@mailoo.org>2014-06-04 23:10:33 +0200
commitde76efe9fe08cb649de661fe1a1211cf016cab87 (patch)
tree60a17ea6985ba90838cf7a6fe7edc204abb93bf7
parent'getinfo' daemon HTTP-RPC returns 'target_height' for progress estimations (diff)
downloadmonero-de76efe9fe08cb649de661fe1a1211cf016cab87.tar.xz
Added static_cast to hshd.current_height
Diffstat (limited to '')
-rw-r--r--src/cryptonote_protocol/cryptonote_protocol_handler.inl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
index b74a81586..a2f0bb3ad 100644
--- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl
+++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
@@ -111,7 +111,7 @@ namespace cryptonote
/* As I don't know if accessing hshd from core could be a good practice,
I prefer pushing target height to the core at the same time it is pushed to the user.
Nz. */
- m_core.set_target_blockchain_height(hshd.current_height);
+ m_core.set_target_blockchain_height(static_cast<int64_t>(hshd.current_height));
int64_t diff = static_cast<int64_t>(hshd.current_height) - static_cast<int64_t>(m_core.get_current_blockchain_height());
LOG_PRINT_CCONTEXT_YELLOW("Sync data returned unknown top block: " << m_core.get_current_blockchain_height() << " -> " << hshd.current_height