From cc81a3715560699adddba21fd7dd6d45be73454c Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Tue, 22 Aug 2017 17:17:19 +0100 Subject: [PATCH] cryptonote_protocol: update target height when syncing too --- src/cryptonote_protocol/cryptonote_protocol_handler.inl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl index f9becd7f..2cc1b0dd 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl @@ -1561,6 +1561,10 @@ skip: drop_connection(context, false, false); return 1; } + + if (arg.total_height > m_core.get_target_blockchain_height()) + m_core.set_target_blockchain_height(arg.total_height); + return 1; } //------------------------------------------------------------------------------------------------------------------------