mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-25 06:37:46 +00:00
Revert "Fix fake 'network synchronized, begin using' messages"
This reverts commit 78035d2b6c
.
The patch doesn't work, and causes constant SYNCHRONIZED OK spam.
This commit is contained in:
parent
53e18cafdf
commit
cec090fc8a
2 changed files with 2 additions and 5 deletions
|
@ -964,12 +964,9 @@ namespace cryptonote
|
||||||
}
|
}
|
||||||
//-----------------------------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------------------------
|
||||||
void core::set_target_blockchain_height(uint64_t target_blockchain_height)
|
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;
|
m_target_blockchain_height = target_blockchain_height;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
//-----------------------------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------------------------
|
||||||
uint64_t core::get_target_blockchain_height() const
|
uint64_t core::get_target_blockchain_height() const
|
||||||
{
|
{
|
||||||
|
|
|
@ -263,7 +263,7 @@ namespace cryptonote
|
||||||
if(context.m_state == cryptonote_connection_context::state_synchronizing)
|
if(context.m_state == cryptonote_connection_context::state_synchronizing)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if(m_core.have_block(hshd.top_id) && !(hshd.current_height < m_core.get_target_blockchain_height()))
|
if(m_core.have_block(hshd.top_id))
|
||||||
{
|
{
|
||||||
context.m_state = cryptonote_connection_context::state_normal;
|
context.m_state = cryptonote_connection_context::state_normal;
|
||||||
if(is_inital)
|
if(is_inital)
|
||||||
|
|
Loading…
Reference in a new issue