mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
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.
This commit is contained in:
parent
cc81a37155
commit
317ab21a03
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ namespace cryptonote
|
||||||
bool t_cryptonote_protocol_handler<t_core>::get_payload_sync_data(CORE_SYNC_DATA& hshd)
|
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);
|
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.cumulative_difficulty = m_core.get_block_cumulative_difficulty(hshd.current_height);
|
||||||
hshd.current_height +=1;
|
hshd.current_height +=1;
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue