aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_utilities/blockchain_prune.cpp (follow)
AgeCommit message (Collapse)AuthorFilesLines
2021-03-28Reduce compilation time of epee/portable_storage_template_helper.hmj-xmr1-0/+2
2019-09-16Removed Berkeley DB and db switching logicJesus Ramirez1-26/+3
2019-04-01Allow pruning before v10moneromooo-monero1-18/+0
This check is now not needed anymore, and would prevent people from using --prune-blockchain when starting a new sync
2019-01-30blockchain_prune: don't prune before v10moneromooo-monero1-0/+18
This uses system time since it doesn't see the p2p network, so is not 100% accurate
2019-01-22Pruningmoneromooo-monero1-0/+663
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.