From 24bbd442a3c4913eb30b4b0198bfc03edc365cca Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 13 Jun 2019 10:24:18 +0000 Subject: [PATCH] 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(-) diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp index e9ae65850..7f7df27f2 100644 --- a/src/cryptonote_core/cryptonote_core.cpp +++ b/src/cryptonote_core/cryptonote_core.cpp @@ -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;