aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol/cryptonote_protocol_handler.inl
diff options
context:
space:
mode:
authorThomas Winget <tewinget@gmail.com>2016-08-23 22:52:25 -0400
committerThomas Winget <tewinget@gmail.com>2016-08-23 22:52:25 -0400
commit78035d2b6c9922f4cd730df0766aa74f4854ccb2 (patch)
treebaba5e18e86b0b581646f89bdc0d6471f3ffde9e /src/cryptonote_protocol/cryptonote_protocol_handler.inl
parentMerge branch 'radfish-PR--readme-clarify-conf-syntax' (diff)
downloadmonero-78035d2b6c9922f4cd730df0766aa74f4854ccb2.tar.xz
Fix fake 'network synchronized, begin using' messages
Diffstat (limited to 'src/cryptonote_protocol/cryptonote_protocol_handler.inl')
-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 9f0ea0e83..6f095a76f 100644
--- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl
+++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
@@ -263,7 +263,7 @@ namespace cryptonote
if(context.m_state == cryptonote_connection_context::state_synchronizing)
return true;
- if(m_core.have_block(hshd.top_id))
+ if(m_core.have_block(hshd.top_id) && !(hshd.current_height < m_core.get_target_blockchain_height()))
{
context.m_state = cryptonote_connection_context::state_normal;
if(is_inital)