aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-09-01 11:32:27 +0200
committerRiccardo Spagni <ric@spagni.net>2016-09-01 11:32:27 +0200
commite0d78858e485b3cb393a4aec0873f80ce1e24e23 (patch)
tree7f3a612b048e5df2a3407356df76e8f3f579fd33 /src/cryptonote_core/blockchain.cpp
parentMerge pull request #1027 (diff)
parentRemove blocks_per_sync limits (diff)
downloadmonero-e0d78858e485b3cb393a4aec0873f80ce1e24e23.tar.xz
Merge pull request #1022
b8c03a5 Remove blocks_per_sync limits (Howard Chu)
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
-rw-r--r--src/cryptonote_core/blockchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index dd9c21b91..b15eb4b90 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -3374,7 +3374,7 @@ bool Blockchain::cleanup_handle_incoming_blocks(bool force_sync)
store_blockchain();
m_sync_counter = 0;
}
- else if (m_sync_counter >= m_db_blocks_per_sync)
+ else if (m_db_blocks_per_sync && m_sync_counter >= m_db_blocks_per_sync)
{
if(m_db_sync_mode == db_async)
{