Skip to content
Permalink
Browse files

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
  • Loading branch information...
moneromooo-monero committed Jun 13, 2019
1 parent fd0cf68 commit 69f9420489e5dee2b13f29cef47478712aedbb05
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/cryptonote_core/cryptonote_core.cpp
@@ -1833,7 +1833,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;

0 comments on commit 69f9420

Please sign in to comment.
You can’t perform that action at this time.