Monero v0.14.1 has just been released with pruning. How does one activate it on the command line for ubuntu?
Quoting relevant part of the commit message:
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.