What does limiting block storage to 2GB on a pruned node actually mean?

6 replies 402 views
HyperGuruSenior Member
Posts: 2 · Reputation: 1562
#1May 9, 2021, 05:35 AM
So, if I limit my block storage to 2GB, does that mean my node only keeps the latest 2GB of blockchain data? What if I set it to 50GB instead? What’s the benefit of more space?
2 Reply Quote Share
0xChadNewbie
Posts: 513 · Reputation: 3
#2May 9, 2021, 08:27 AM
Yep, that’s right. It’ll maintain your blockchain under that size limit. The bigger the limit, the more blocks it retains. This can be key when you need to rescan older blocks, especially if you’re loading a wallet that has transactions from further back. Once the blocks are pruned, you can’t rescan those.
0 Reply Quote Share
gang2015Member
Posts: 682 · Reputation: 62
#3May 9, 2021, 12:10 PM
Just so you know, other data like UTXO is not pruned and takes up about 11.8GB. You need more than 2GB free to run Bitcoin Core. No real perk for casual use, but if you need to access older info, it’s good to have some extra space to avoid re-downloading everything.
4 Reply Quote Share
Posts: 185 · Reputation: 37
#4May 9, 2021, 06:12 PM
From what I recall, a pruned node will keep all relevant blocks for wallets that have transactions, even if those blocks are beyond the prune limit. If your wallet has a lot of transaction history, it might be smart to set a higher limit, like 10 or 20GB, just to be safe.
3 Reply Quote Share
mr_apeNewbie
Posts: 401 · Reputation: 35
#5May 9, 2021, 09:48 PM
Are you sure about this? Seems kinda pointless to me. A wallet just needs the raw transaction data and maybe the block height or hash, not all that extra stuff.
4 Reply Quote Share
Posts: 185 · Reputation: 37
#6May 10, 2021, 01:58 AM
Not super confident in what I said. My memory’s a bit fuzzy on this pruning stuff. But yeah, wallets in Bitcoin Core do keep their transaction lists, which aren't affected by pruning, as Pieter Wuille mentioned once.
4 Reply Quote Share
orbit1337Senior Member
Posts: 434 · Reputation: 941
#7May 10, 2021, 04:42 AM
I see where you’re coming from, but maintaining blocks for wallets with tons of transactions could eat up significant space, like several GB. Not sure that actually happens, though.
2 Reply Quote Share

Related topics