Merge pull request #6282

66472074 Daemon: Guard against reporting "synchronized" too early (rbrunner7)
pull/235/head
Alexander Blair 4 years ago
commit a762084b15
No known key found for this signature in database
GPG Key ID: C64552D877C32479

@ -338,7 +338,7 @@ namespace cryptonote
if(m_core.have_block(hshd.top_id))
{
context.m_state = cryptonote_connection_context::state_normal;
if(is_inital && target == m_core.get_current_blockchain_height())
if(is_inital && hshd.current_height >= target && target == m_core.get_current_blockchain_height())
on_connection_synchronized();
return true;
}

Loading…
Cancel
Save