aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_converter/blockchain_converter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/blockchain_converter/blockchain_converter.cpp')
-rw-r--r--src/blockchain_converter/blockchain_converter.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/blockchain_converter/blockchain_converter.cpp b/src/blockchain_converter/blockchain_converter.cpp
index c3c6d0918..855dde644 100644
--- a/src/blockchain_converter/blockchain_converter.cpp
+++ b/src/blockchain_converter/blockchain_converter.cpp
@@ -57,7 +57,16 @@ bool opt_testnet = false;
// number of blocks per batch transaction
// adjustable through command-line argument according to available RAM
-uint64_t db_batch_size = 20000;
+#if !defined(WIN32)
+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;
+#endif
+
+// converter only uses verify mode
+uint64_t db_batch_size = db_batch_size_verify;
}