aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/lmdb
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-12-05 19:27:39 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-12-05 21:13:24 +0000
commit5511563e92ca9ef62008eab587ccb15aa6de7b11 (patch)
treed59d0b9dba38a35e81be52df054f1e445b4905d2 /src/blockchain_db/lmdb
parentdb_lmdb: inline check_open, it's trivial and called everywhere (diff)
downloadmonero-5511563e92ca9ef62008eab587ccb15aa6de7b11.tar.xz
db_lmdb: avoid pointless division
Diffstat (limited to 'src/blockchain_db/lmdb')
-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 30d5fae71..5a0799367 100644
--- a/src/blockchain_db/lmdb/db_lmdb.cpp
+++ b/src/blockchain_db/lmdb/db_lmdb.cpp
@@ -3106,7 +3106,7 @@ uint64_t BlockchainLMDB::add_block(const block& blk, size_t block_weight, const
check_open();
uint64_t m_height = height();
- if (m_height % 1000 == 0)
+ if (m_height % 1024 == 0)
{
// for batch mode, DB resize check is done at start of batch transaction
if (! m_batch_active && need_resize())