aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-08-15 17:09:15 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-08-15 17:09:15 -0500
commit11673702395e119e3759d87c5d1a16d22f7b5f2d (patch)
tree64ed4228f85287fcf6141f3c0750372ea440b3d6 /src/cryptonote_core
parentMerge pull request #5634 (diff)
parentcore: do not complain about low block rate if disconnected (diff)
downloadmonero-11673702395e119e3759d87c5d1a16d22f7b5f2d.tar.xz
Merge pull request #5637
69f9420 core: do not complain about low block rate if disconnected (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core')
-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 2ebd99904..a3a92ab60 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -1844,7 +1844,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;