From 69f9420489e5dee2b13f29cef47478712aedbb05 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 13 Jun 2019 10:24:18 +0000 Subject: 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 --- src/cryptonote_core/cryptonote_core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index 55e1b287f..fab1932bd 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/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; -- cgit v1.2.3