Check if LMDB needs resize every 1000 blocks

(this was 10 for testing purposes)
getblocktemplate-height
Thomas Winget 9 years ago
parent b0d849e0a4
commit 01076ae700
No known key found for this signature in database
GPG Key ID: 58131A160789E630

@ -1884,7 +1884,7 @@ uint64_t BlockchainLMDB::add_block( const block& blk
LOG_PRINT_L3("BlockchainLMDB::" << __func__); LOG_PRINT_L3("BlockchainLMDB::" << __func__);
check_open(); check_open();
if (m_height % 10 == 0) if (m_height % 1000 == 0)
{ {
if (need_resize()) if (need_resize())
{ {

Loading…
Cancel
Save