mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
db_lmdb: avoid pointless division
This commit is contained in:
parent
1b0fe29ee3
commit
f97b2edb3c
1 changed files with 1 additions and 1 deletions
|
@ -3168,7 +3168,7 @@ uint64_t BlockchainLMDB::add_block(const block& blk, size_t block_weight, const
|
||||||
check_open();
|
check_open();
|
||||||
uint64_t m_height = height();
|
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
|
// for batch mode, DB resize check is done at start of batch transaction
|
||||||
if (! m_batch_active && need_resize())
|
if (! m_batch_active && need_resize())
|
||||||
|
|
Loading…
Reference in a new issue