mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 17:32:33 +00:00
cryptonote_protocol: avoid spurious SYNCHRONIZED OK messages
This commit is contained in:
parent
5be43fcdba
commit
84e23156ac
1 changed files with 12 additions and 2 deletions
|
@ -1402,8 +1402,18 @@ skip:
|
||||||
<< "\r\non connection [" << epee::net_utils::print_connection_context_short(context)<< "]");
|
<< "\r\non connection [" << epee::net_utils::print_connection_context_short(context)<< "]");
|
||||||
|
|
||||||
context.m_state = cryptonote_connection_context::state_normal;
|
context.m_state = cryptonote_connection_context::state_normal;
|
||||||
MGINFO_GREEN("SYNCHRONIZED OK");
|
if (context.m_remote_blockchain_height >= m_core.get_target_blockchain_height())
|
||||||
on_connection_synchronized();
|
{
|
||||||
|
if (m_core.get_current_blockchain_height() >= m_core.get_target_blockchain_height())
|
||||||
|
{
|
||||||
|
MGINFO_GREEN("SYNCHRONIZED OK");
|
||||||
|
on_connection_synchronized();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
MINFO(context << " we've reached this peer's blockchain height");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue