diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-09-24 15:27:50 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-09-24 15:29:59 +0000 |
commit | 74a23e9a591aed42e26062e6c33fb579e391ec11 (patch) | |
tree | d3650600d65a464841303d92a8fcd6f6dfbbbc9a /src/cryptonote_protocol/cryptonote_protocol_handler.inl | |
parent | Merge pull request #5861 (diff) | |
download | monero-74a23e9a591aed42e26062e6c33fb579e391ec11.tar.xz |
protocol: only print sync complete message when out of precompiled hashes
This avoids most premature triggers
Diffstat (limited to 'src/cryptonote_protocol/cryptonote_protocol_handler.inl')
-rw-r--r-- | src/cryptonote_protocol/cryptonote_protocol_handler.inl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_protocol/cryptonote_protocol_handler.inl b/src/cryptonote_protocol/cryptonote_protocol_handler.inl index 65115ee72..789f62411 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl +++ b/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 |