diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-22 17:17:19 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-08-23 13:38:13 +0100 |
commit | cc81a3715560699adddba21fd7dd6d45be73454c (patch) | |
tree | 6e94d3422239f540e8d766f87039e8088f57169e /src | |
parent | cryptonote_protocol: simplify and remove unnecessary casts (diff) | |
download | monero-cc81a3715560699adddba21fd7dd6d45be73454c.tar.xz |
cryptonote_protocol: update target height when syncing too
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_protocol/cryptonote_protocol_handler.inl | 4 |
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; } //------------------------------------------------------------------------------------------------------------------------ |