mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-29 22:33:28 +01:00
protocol: fix delayed "you are now synchronized..." message
This commit is contained in:
parent
282e2ef058
commit
d689b946f9
@ -2081,6 +2081,8 @@ skip:
|
|||||||
}
|
}
|
||||||
MDEBUG(context << "Nothing to get from this peer, and it's not ahead of us, all done");
|
MDEBUG(context << "Nothing to get from this peer, and it's not ahead of us, all done");
|
||||||
context.m_state = cryptonote_connection_context::state_normal;
|
context.m_state = cryptonote_connection_context::state_normal;
|
||||||
|
if (m_core.get_current_blockchain_height() >= m_core.get_target_blockchain_height())
|
||||||
|
on_connection_synchronized();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
uint64_t next_needed_height = m_block_queue.get_next_needed_height(bc_height);
|
uint64_t next_needed_height = m_block_queue.get_next_needed_height(bc_height);
|
||||||
@ -2228,6 +2230,8 @@ skip:
|
|||||||
}
|
}
|
||||||
MDEBUG(context << "Nothing to get from this peer, and it's not ahead of us, all done");
|
MDEBUG(context << "Nothing to get from this peer, and it's not ahead of us, all done");
|
||||||
context.m_state = cryptonote_connection_context::state_normal;
|
context.m_state = cryptonote_connection_context::state_normal;
|
||||||
|
if (m_core.get_current_blockchain_height() >= m_core.get_target_blockchain_height())
|
||||||
|
on_connection_synchronized();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2419,10 +2423,7 @@ skip:
|
|||||||
if (context.m_remote_blockchain_height >= m_core.get_target_blockchain_height())
|
if (context.m_remote_blockchain_height >= m_core.get_target_blockchain_height())
|
||||||
{
|
{
|
||||||
if (m_core.get_current_blockchain_height() >= m_core.get_target_blockchain_height())
|
if (m_core.get_current_blockchain_height() >= m_core.get_target_blockchain_height())
|
||||||
{
|
|
||||||
MGINFO_GREEN("SYNCHRONIZED OK");
|
|
||||||
on_connection_synchronized();
|
on_connection_synchronized();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user