aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_protocol/cryptonote_protocol_handler.inl
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-22 17:17:19 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-23 13:38:13 +0100
commitcc81a3715560699adddba21fd7dd6d45be73454c (patch)
tree6e94d3422239f540e8d766f87039e8088f57169e /src/cryptonote_protocol/cryptonote_protocol_handler.inl
parentcryptonote_protocol: simplify and remove unnecessary casts (diff)
downloadmonero-cc81a3715560699adddba21fd7dd6d45be73454c.tar.xz
cryptonote_protocol: update target height when syncing too
Diffstat (limited to '')
-rw-r--r--src/cryptonote_protocol/cryptonote_protocol_handler.inl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
index f9becd7f9..2cc1b0dd1 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;
}
//------------------------------------------------------------------------------------------------------------------------