aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_utilities/bootstrap_file.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-10-16 19:45:35 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-10-17 00:11:26 +0100
commitb13e7f284b909df8ca54fe93c231910a130f9f3e (patch)
treea79e281f205a0578312aa3b7cfc9a488036b9078 /src/blockchain_utilities/bootstrap_file.h
parentbootstrap_file: do not try to create a directory with an empty name (diff)
downloadmonero-b13e7f284b909df8ca54fe93c231910a130f9f3e.tar.xz
blockchain_export can now export to a blocks.dat format
Also make the number of blocks endian independant, and add support for testnet
Diffstat (limited to '')
-rw-r--r--src/blockchain_utilities/bootstrap_file.h19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/blockchain_utilities/bootstrap_file.h b/src/blockchain_utilities/bootstrap_file.h
index fcf89d1ac..6f8df18dd 100644
--- a/src/blockchain_utilities/bootstrap_file.h
+++ b/src/blockchain_utilities/bootstrap_file.h
@@ -49,24 +49,7 @@
#include "common/command_line.h"
#include "version.h"
-
-// CONFIG: choose one of the three #define's
-//
-// DB_MEMORY is a sensible default for users migrating to LMDB, as it allows
-// the exporter to use the in-memory blockchain while the other binaries
-// work with LMDB, without recompiling anything.
-//
-#define SOURCE_DB DB_MEMORY
-// #define SOURCE_DB DB_LMDB
-// to use global compile-time setting (DB_MEMORY or DB_LMDB):
-// #define SOURCE_DB BLOCKCHAIN_DB
-
-
-// bounds checking is done before writing to buffer, but buffer size
-// should be a sensible maximum
-#define BUFFER_SIZE 1000000
-#define NUM_BLOCKS_PER_CHUNK 1
-#define BLOCKCHAIN_RAW "blockchain.raw"
+#include "blockchain_utilities.h"
using namespace cryptonote;