mirror of
https://github.com/monero-project/monero.git
synced 2025-12-22 23:26:44 -08:00
blockchain_import: Check bit width for more than just WIN32
Pass the CMake bit width setting to compile flags for blockchain_import and blockchain_converter. For LMDB on 32-bit, hyc has found that batch size of 100 appears to be a good default.
This commit is contained in:
@@ -56,11 +56,11 @@ bool opt_testnet = true;
|
||||
|
||||
// number of blocks per batch transaction
|
||||
// adjustable through command-line argument according to available RAM
|
||||
#if !defined(WIN32)
|
||||
#if ARCH_WIDTH != 32
|
||||
uint64_t db_batch_size = 20000;
|
||||
#else
|
||||
// set a lower default batch size, pending possible LMDB issue with large transaction size
|
||||
uint64_t db_batch_size = 1000;
|
||||
uint64_t db_batch_size = 100;
|
||||
#endif
|
||||
|
||||
// when verifying, use a smaller default batch size so progress is more
|
||||
|
||||
Reference in New Issue
Block a user