diff options
| author | Alexander Blair <snipa@jagtech.io> | 2020-03-27 12:19:07 -0700 |
|---|---|---|
| committer | Alexander Blair <snipa@jagtech.io> | 2020-03-27 12:19:07 -0700 |
| commit | a762084b15fa84b00862935761498a93ecbd7357 (patch) | |
| tree | d07347491d370fb951aae0190744b9e6d1a619c4 /src/cryptonote_protocol | |
| parent | a5acebfb6f2bbc162df884d9afbd8f69020e459c (diff) | |
| parent | 664720747f7a25c13f5c5daad7583771ea9a9056 (diff) | |
| download | monzero-core-a762084b15fa84b00862935761498a93ecbd7357.tar.gz monzero-core-a762084b15fa84b00862935761498a93ecbd7357.tar.xz monzero-core-a762084b15fa84b00862935761498a93ecbd7357.zip | |
Merge pull request #6282
66472074 Daemon: Guard against reporting "synchronized" too early (rbrunner7)
Diffstat (limited to 'src/cryptonote_protocol')
| -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 265c27315..7cbceddff 100644 --- a/src/cryptonote_protocol/cryptonote_protocol_handler.inl +++ b/src/cryptonote_protocol/cryptonote_protocol_handler.inl @@ -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; } |
