aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-23 01:22:12 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-08-23 13:38:15 +0100
commit317ab21a0317fdf38424d7d342e8bacc382c9a0a (patch)
treecefbf88267b29d2d7d9ab41058bd26091eb94b90 /src
parentcryptonote_protocol: update target height when syncing too (diff)
downloadmonero-317ab21a0317fdf38424d7d342e8bacc382c9a0a.tar.xz
cryptonote_protocol: less strict check on top version on connect
This allows peers who synced past a fork on the wrong height to reorg to the right chain after they updated their software to include the new version.
Diffstat (limited to 'src')
-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 2cc1b0dd1..d4736fade 100644
--- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl
+++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl
@@ -315,7 +315,7 @@ namespace cryptonote
bool t_cryptonote_protocol_handler<t_core>::get_payload_sync_data(CORE_SYNC_DATA& hshd)
{
m_core.get_blockchain_top(hshd.current_height, hshd.top_id);
- hshd.top_version = m_core.get_hard_fork_version(hshd.current_height);
+ hshd.top_version = m_core.get_ideal_hard_fork_version(hshd.current_height);
hshd.cumulative_difficulty = m_core.get_block_cumulative_difficulty(hshd.current_height);
hshd.current_height +=1;
return true;