aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-06-13 10:24:18 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-06-13 10:25:30 +0000
commit69f9420489e5dee2b13f29cef47478712aedbb05 (patch)
treeb450c8494e3b0d95ee5a5e4409df3f4b66a6e1b3
parentMerge pull request #5619 (diff)
downloadmonero-69f9420489e5dee2b13f29cef47478712aedbb05.tar.xz
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
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp2
1 files changed, 1 insertions, 1 deletions
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;