@Murch please next time, don't use that shit twitter and instead post here on SN the hole thread.
Twitter is full of idiots that do not listen to you. SN will much appreciate your posts and also you get sats FFS !
Keep in mind that the operation is irreversible. If you ever need to check an old transaction and that block was discarded you need to start syncing from scratch
Bitcoin Core has supported automatically pruning the blockchain since 0.11. Pruning the blockchain allows for significant storage space savings as the vast majority of the downloaded data can be discarded after processing so very little of it remains on the disk.
Manual block pruning can now be enabled by setting -prune=1. Once that is set, the RPC command pruneblockchain can be used to prune the blockchain up to the specified height or timestamp.
5/16: The downside of pruned nodes is that they cannot maintain a transaction index and a rescan requires synchronizing from scratch.
It depends! If your wallet uses for example compact block filters, you can keep the filters even after pruning the corresponding blocks. That allows you to scan the filters to find which blocks you need, even if you don't have the actual blocks anymore. I think this was merged into Bitcoin Core about half a year ago.
@Murch please next time, don't use that shit twitter and instead post here on SN the hole thread. Twitter is full of idiots that do not listen to you. SN will much appreciate your posts and also you get sats FFS !
deleted by author
But, but, but... I did post here first: #357499 ;)
But, but, but, but, but... it's not a post 👀
Touché
Thanks for the forward, @BITC0IN!
deleted by author
Keep in mind that the operation is irreversible. If you ever need to check an old transaction and that block was discarded you need to start syncing from scratch
deleted by author
That's right, that happened to me once I pruned and opened an older wallet. I wish we could set pruning to a date (of oldest utxo) instead of size
I'm pretty sure there was a way to prune to a specific height. I'll find out when I get to a computer
You can do it by setting
-prune=1and using thepruneblockchaincommand.via https://bitcoin.org/en/release/v0.14.0#manual-pruning:
Awesome, didn't know this!
deleted by author
deleted by author
Bitcoin Core is written in C++. I would assume it's complicated. Wish I had more time for that
It depends! If your wallet uses for example compact block filters, you can keep the filters even after pruning the corresponding blocks. That allows you to scan the filters to find which blocks you need, even if you don't have the actual blocks anymore. I think this was merged into Bitcoin Core about half a year ago.