Merge pull request #1133

cec090f Revert "Fix fake 'network synchronized, begin using' messages" (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2016-10-04 12:08:33 +02:00
commit d60826c0b9
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
2 changed files with 2 additions and 5 deletions

View File

@ -957,12 +957,9 @@ 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
{

View File

@ -261,7 +261,7 @@ namespace cryptonote
if(context.m_state == cryptonote_connection_context::state_synchronizing)
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;
if(is_inital)