aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Winget <tewinget@gmail.com>2015-05-18 06:18:31 -0400
committerThomas Winget <tewinget@gmail.com>2015-05-18 06:18:31 -0400
commit01076ae70006558be580a3625ecc738efc9adeb7 (patch)
treee3ba1c022f842da41889ae50e00b48fc57a8bb0d /src
parentnull out batch txn pointer as needed (BlockchainLMDB) (diff)
downloadmonero-01076ae70006558be580a3625ecc738efc9adeb7.tar.xz
Check if LMDB needs resize every 1000 blocks
(this was 10 for testing purposes)
Diffstat (limited to 'src')
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.cpp b/src/blockchain_db/lmdb/db_lmdb.cpp
index 93900a434..fd2600bab 100644
--- a/src/blockchain_db/lmdb/db_lmdb.cpp
+++ b/src/blockchain_db/lmdb/db_lmdb.cpp
@@ -1884,7 +1884,7 @@ uint64_t BlockchainLMDB::add_block( const block& blk
LOG_PRINT_L3("BlockchainLMDB::" << __func__);
check_open();
- if (m_height % 10 == 0)
+ if (m_height % 1000 == 0)
{
if (need_resize())
{