Skip to content
Permalink
Browse files

protocol: only print sync complete message when out of precompiled ha…

…shes

This avoids most premature triggers
  • Loading branch information...
moneromooo-monero committed Sep 24, 2019
1 parent 2c171a9 commit 74a23e9a591aed42e26062e6c33fb579e391ec11
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/cryptonote_protocol/cryptonote_protocol_handler.inl
@@ -2064,7 +2064,7 @@ skip:
bool t_cryptonote_protocol_handler<t_core>::on_connection_synchronized()
{
bool val_expected = false;
if(m_synchronized.compare_exchange_strong(val_expected, true))
if(!m_core.is_within_compiled_block_hash_area(m_core.get_current_blockchain_height()) && m_synchronized.compare_exchange_strong(val_expected, true))
{
MGINFO_YELLOW(ENDL << "**********************************************************************" << ENDL
<< "You are now synchronized with the network. You may now start monero-wallet-cli." << ENDL

0 comments on commit 74a23e9

Please sign in to comment.
You can’t perform that action at this time.