core: do not complain about low block rate if disconnected

In that case, we'll still keep the "Monero is now disconnected
from the network" near the end of the log
This commit is contained in:
moneromooo-monero 2019-06-13 10:24:18 +00:00 committed by wowario
parent f15de92f90
commit 24bbd442a3
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111
1 changed files with 1 additions and 1 deletions

View File

@ -1918,7 +1918,7 @@ namespace cryptonote
//-----------------------------------------------------------------------------------------------
bool core::check_block_rate()
{
if (m_offline || m_nettype == FAKECHAIN || m_target_blockchain_height > get_current_blockchain_height())
if (m_offline || m_nettype == FAKECHAIN || m_target_blockchain_height > get_current_blockchain_height() || m_target_blockchain_height == 0)
{
MDEBUG("Not checking block rate, offline or syncing");
return true;