Skip to content

Commit

Permalink
Check if LMDB needs resize every 1000 blocks
Browse files Browse the repository at this point in the history
(this was 10 for testing purposes)
  • Loading branch information
tewinget committed May 18, 2015
1 parent b0d849e commit 01076ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blockchain_db/lmdb/db_lmdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
{
Expand Down

0 comments on commit 01076ae

Please sign in to comment.