diff options
author | warptangent <warptangent@tutanota.com> | 2016-02-17 12:10:26 -0800 |
---|---|---|
committer | warptangent <warptangent@tutanota.com> | 2016-02-17 12:37:15 -0800 |
commit | 05e7ac0360ac3a0a945ad69cad48c5a3b5b59acd (patch) | |
tree | 92d25b2be3d7c5fa89690926164752412d9fe136 /src/blockchain_utilities/blockchain_converter.cpp | |
parent | Merge pull request #672 (diff) | |
download | monero-05e7ac0360ac3a0a945ad69cad48c5a3b5b59acd.tar.xz |
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.
Diffstat (limited to 'src/blockchain_utilities/blockchain_converter.cpp')
-rw-r--r-- | src/blockchain_utilities/blockchain_converter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/blockchain_utilities/blockchain_converter.cpp b/src/blockchain_utilities/blockchain_converter.cpp index fdd369e79..17b6d81bf 100644 --- a/src/blockchain_utilities/blockchain_converter.cpp +++ b/src/blockchain_utilities/blockchain_converter.cpp @@ -57,12 +57,12 @@ bool opt_testnet = false; // 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_verify = 5000; #else // set a lower default batch size for Windows, pending possible LMDB issue with // large batch size. -uint64_t db_batch_size_verify = 1000; +uint64_t db_batch_size_verify = 100; #endif // converter only uses verify mode |