monero-blockchain-import - Reference¶
Nowadays, there is little usage for raw blockchain export / import. In the past the p2p blockchain download was much slower. Back than blockchain.raw file was used to speed up download process of bootstrapping a node.
The tool imports bootstrap file
blockchain.raw to your full node.
This could be useful if you want to decouple download from verification for any reason (like testing performance in isolation). In this case, you may download the
blockchain.raw file from https://downloads.getmonero.org/blockchain.raw.
Ideally though, you should use your own trusted
blockchain.raw file that you exported earlier.
Please note that importing
blockchain.raw will not speed up the process over syncing up from p2p network. This is because usual bottlenecks are disk IO and verification, not the download.
The tool works on your local files. It does not require
Go to directory where you unpacked Monero.
./monero-blockchain-import --stagenet --output-file=/tmp/blockchain.raw
| ||Enlist available options.|
|(missing)||By default |
| ||Import stagenet blockchain.|
| ||Import testnet blockchain.|
Specifying the log file path is not supported.
| || |
| ||Full path to raw blockchain file. The default is |
| ||Only import up to this block height. By default import all blocks (value |
| ||Discard specified number of blocks from the tip of the bootstrapped blockchain. By default don't discard anything (value |
| ||Full path to data directory. This is where the blockchain, log files, and p2p network memory are stored. For defaults and details see data directory.|
| ||Count blocks in the bootstrap file and exit.|
| ||Whether to drop hard fork data. Off by default ( |
| ||The only valid value seems to be |
| ||The safe default is to run verification (value |
| ||Whether to save to disk on an ongoing basis (the default, value |
| ||How often to save to disk expressed in number of blocks. By default save every |
| ||Resume from current height if output database already exists (the default, value |