wownero/src/blockchain_db
moneromooo-monero b750fb27b0
Pruning
The blockchain prunes seven eighths of prunable tx data.
This saves about two thirds of the blockchain size, while
keeping the node useful as a sync source for an eighth
of the blockchain.

No other data is currently pruned.

There are three ways to prune a blockchain:

- run monerod with --prune-blockchain
- run "prune_blockchain" in the monerod console
- run the monero-blockchain-prune utility

The first two will prune in place. Due to how LMDB works, this
will not reduce the blockchain size on disk. Instead, it will
mark parts of the file as free, so that future data will use
that free space, causing the file to not grow until free space
grows scarce.

The third way will create a second database, a pruned copy of
the original one. Since this is a new file, this one will be
smaller than the original one.

Once the database is pruned, it will stay pruned as it syncs.
That is, there is no need to use --prune-blockchain again, etc.
2019-01-22 20:30:51 +00:00
..
berkeleydb Make get_output_key method const 2019-01-07 05:53:14 +08:00
lmdb Pruning 2019-01-22 20:30:51 +00:00
CMakeLists.txt Update 2018 copyright 2018-01-26 10:03:20 -05:00
blockchain_db.cpp Pruning 2019-01-22 20:30:51 +00:00
blockchain_db.h Pruning 2019-01-22 20:30:51 +00:00
db_types.h Update 2018 copyright 2018-01-26 10:03:20 -05:00