pull down to refresh

@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 !

reply

deleted by author

reply

But, but, but... I did post here first: #357499 ;)

reply

But, but, but, but, but... it's not a post 👀

reply

Touché

reply

Thanks for the forward, @BITC0IN!

reply

deleted by author

reply

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

reply

deleted by author

reply

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

reply

I'm pretty sure there was a way to prune to a specific height. I'll find out when I get to a computer

reply

You can do it by setting -prune=1 and using the pruneblockchain command.

via https://bitcoin.org/en/release/v0.14.0#manual-pruning:

Manual Pruning

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.
reply

Awesome, didn't know this!

reply

deleted by author

deleted by author

reply

Bitcoin Core is written in C++. I would assume it's complicated. Wish I had more time for that

reply
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.

reply