mirror of
https://github.com/monero-project/monero.git
synced 2025-08-12 09:00:17 -04:00
blockchain_export can now export to a blocks.dat format
Also make the number of blocks endian independant, and add support for testnet
This commit is contained in:
parent
11db442a6c
commit
b13e7f284b
11 changed files with 368 additions and 38 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue