bcf3f6affuzz_tests: catch unhandled exceptions (moneromooo-monero)3ebd05d4miner: restore stream flags after changing them (moneromooo-monero)a093092elevin_protocol_handler_async: do not propagate exception through dtor (moneromooo-monero)1eebb82bnet_helper: do not propagate exceptions through dtor (moneromooo-monero)fb6a3630miner: do not propagate exceptions through dtor (moneromooo-monero)2e2139ffepee: do not propagate exception through dtor (moneromooo-monero)0749a8bddb_lmdb: do not propagate exceptions in dtor (moneromooo-monero)1b0afeebwallet_rpc_server: exit cleanly on unhandled exceptions (moneromooo-monero)418a9936unit_tests: catch unhandled exceptions (moneromooo-monero)ea7f9543threadpool: do not propagate exceptions through the dtor (moneromooo-monero)6e855422gen_multisig: nice exit on unhandled exception (moneromooo-monero)53df2debdb_lmdb: catch error in mdb_stat calls during migration (moneromooo-monero)e67016ddblockchain_blackball: catch failure to commit db transaction (moneromooo-monero)661439f4mlog: don't remove old logs if we failed to rename the current file (moneromooo-monero)5fdcda50easylogging++: test for NULL before dereference (moneromooo-monero)7ece1550performance_test: fix bad last argument calling add_arg (moneromooo-monero)a085da32unit_tests: add check for page size > 0 before dividing (moneromooo-monero)d8b1ec8bunit_tests: use std::shared_ptr to shut coverity up about leaks (moneromooo-monero)02563bf4simplewallet: top level exception catcher to print nicer messages (moneromooo-monero)c57a65b2blockchain_blackball: fix shift range for 32 bit archs (moneromooo-monero)
Monero Blockchain Utilities
Copyright (c) 2014-2018, The Monero Project
Introduction
The blockchain utilities allow one to import and export the blockchain.
Usage:
See also each utility's "--help" option.
Export an existing blockchain database
$ monero-blockchain-export
This loads the existing blockchain and exports it to $MONERO_DATA_DIR/export/blockchain.raw
Import the exported file
$ monero-blockchain-import
This imports blocks from $MONERO_DATA_DIR/export/blockchain.raw (exported using the
monero-blockchain-export tool as described above) into the current database.
Defaults: --batch on, --batch size 20000, --verify on
Batch size refers to number of blocks and can be adjusted for performance based on available RAM.
Verification should only be turned off if importing from a trusted blockchain.
If you encounter an error like "resizing not supported in batch mode", you can just re-run
the monero-blockchain-import command again, and it will restart from where it left off.
## use default settings to import blockchain.raw into database
$ monero-blockchain-import
## fast import with large batch size, database mode "fastest", verification off
$ monero-blockchain-import --batch-size 20000 --database lmdb#fastest --verify off
Import options
--input-file
specifies input file path for importing
default: <data-dir>/export/blockchain.raw
--output-file
specifies output file path to export to
default: <data-dir>/export/blockchain.raw
--block-stop
stop at block number
--database <database type>
--database <database type>#<flag(s)>
database type: lmdb, memory
flags:
The flag after the # is interpreted as a composite mode/flag if there's only one (no comma separated arguments).
The composite mode represents multiple DB flags and support different database types:
safe, fast, fastest
Database-specific flags can be set instead.
LMDB flags (more than one may be specified):
nosync, nometasync, writemap, mapasync, nordahead
Examples:
$ monero-blockchain-import --database lmdb#fastest
$ monero-blockchain-import --database lmdb#nosync
$ monero-blockchain-import --database lmdb#nosync,nometasync