mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 03:03:17 +00:00
Merge pull request #984
78035d2
Fix fake 'network synchronized, begin using' messages (Thomas Winget)
This commit is contained in:
commit
2702e4999a
2 changed files with 5 additions and 2 deletions
|
@ -956,9 +956,12 @@ namespace cryptonote
|
|||
}
|
||||
//-----------------------------------------------------------------------------------------------
|
||||
void core::set_target_blockchain_height(uint64_t target_blockchain_height)
|
||||
{
|
||||
if (target_blockchain_height > m_target_blockchain_height)
|
||||
{
|
||||
m_target_blockchain_height = target_blockchain_height;
|
||||
}
|
||||
}
|
||||
//-----------------------------------------------------------------------------------------------
|
||||
uint64_t core::get_target_blockchain_height() const
|
||||
{
|
||||
|
|
|
@ -263,7 +263,7 @@ namespace cryptonote
|
|||
if(context.m_state == cryptonote_connection_context::state_synchronizing)
|
||||
return true;
|
||||
|
||||
if(m_core.have_block(hshd.top_id))
|
||||
if(m_core.have_block(hshd.top_id) && !(hshd.current_height < m_core.get_target_blockchain_height()))
|
||||
{
|
||||
context.m_state = cryptonote_connection_context::state_normal;
|
||||
if(is_inital)
|
||||
|
|
Loading…
Reference in a new issue