diff options
author | Thomas Winget <tewinget@gmail.com> | 2015-05-18 06:18:31 -0400 |
---|---|---|
committer | Thomas Winget <tewinget@gmail.com> | 2015-05-18 06:18:31 -0400 |
commit | 01076ae70006558be580a3625ecc738efc9adeb7 (patch) | |
tree | e3ba1c022f842da41889ae50e00b48fc57a8bb0d /src/blockchain_db | |
parent | null out batch txn pointer as needed (BlockchainLMDB) (diff) | |
download | monero-01076ae70006558be580a3625ecc738efc9adeb7.tar.xz |
Check if LMDB needs resize every 1000 blocks
(this was 10 for testing purposes)
Diffstat (limited to '')
-rw-r--r-- | src/blockchain_db/lmdb/db_lmdb.cpp | 2 |
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()) { |