Bitcoin Forum
August 01, 2026, 10:53:00 AM *
News: COLDCARD users only: critical vulnerability risks funds stored on COLDCARD devices; immediate action required
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: pruning blockchain: what i have to do?  (Read 209 times)
nondormomai (OP)
Member
**
Offline

Activity: 119
Merit: 40


View Profile
November 30, 2025, 10:37:54 AM
 #1

In Bitcoincore29 > Settings > Main
I read
"Prune block storage to  ______ GB"


I have a question.

If I enter "200" in the blank field, the software...

A) ......leaves only the last (most recent) 200 GB of blocks on my SSD
or
B) .....deletes the oldest 200 GB from the blockchain I downloaded (in this case, the floating point cannot exceed the size of the entire blockchain).


It would make sense for A), but I'm asking.


Thank you
Cookdata
Legendary
*
Offline

Activity: 1750
Merit: 1408


Not Your Keys, Not Your Bitcoin


View Profile
November 30, 2025, 11:21:33 AM
Merited by pooya87 (4)
 #2

Pruning leaves the recent block to the size you set in the prune, as you download new blocks, the old blocks will be deleted to fit into that size of 200gb.

So A is correct.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
nondormomai (OP)
Member
**
Offline

Activity: 119
Merit: 40


View Profile
November 30, 2025, 11:30:37 AM
 #3

Pruning leaves the recent block to the size you set in the prune, as you download new blocks, the old blocks will be deleted to fit into that size of 200gb.

So A is correct.


Thank you.

But is the pruning possibile only after i have downloaded all blocks?
or i can set the pruning option when i install the client?
Cookdata
Legendary
*
Offline

Activity: 1750
Merit: 1408


Not Your Keys, Not Your Bitcoin


View Profile
November 30, 2025, 11:38:47 AM
 #4

Pruning leaves the recent block to the size you set in the prune, as you download new blocks, the old blocks will be deleted to fit into that size of 200gb.

So A is correct.


Thank you.

But is the pruning possibile only after i have downloaded all blocks?
or i can set the pruning option when i install the client?

To answer your question, yes you can prune even after downloading the blocks

You can as well set pruning option immediately after installation.

But you should only be pruning if you don't have enough space to keep the whole blocks or you are trying to manage space on your computer.

If you have the space and can keep 600gb plus, there is no reason to prune.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
nc50lc
Legendary
*
Offline

Activity: 3220
Merit: 8944


Self-proclaimed Genius


View Profile
December 01, 2025, 07:06:30 AM
Merited by vapourminer (1)
 #5

But is the pruning possibile only after i have downloaded all blocks?
or i can set the pruning option when i install the client?
I saw that you also posted the OP in your other thread where you described that you're already downloading the blockchain on a 1TB drive.

Yes, you can set it anytime you like but the node has to be restarted for the prune setting to apply.

But take note that you can't just reverse it after enabling.
Once you enabled prune mode, disabling it will cause your node to redownload the entire blockchain from start.
So carefully consider its limitations (can't rescan deleted blocks, serves only a few blocks regardless of size, DYOR.) before deciding to enable that setting.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
nondormomai (OP)
Member
**
Offline

Activity: 119
Merit: 40


View Profile
December 02, 2025, 08:09:39 AM
 #6

But is the pruning possibile only after i have downloaded all blocks?
or i can set the pruning option when i install the client?
I saw that you also posted the OP in your other thread where you described that you're already downloading the blockchain on a 1TB drive.

Yes, you can set it anytime you like but the node has to be restarted for the prune setting to apply.

But take note that you can't just reverse it after enabling.
Once you enabled prune mode, disabling it will cause your node to redownload the entire blockchain from start.
So carefully consider its limitations (can't rescan deleted blocks, serves only a few blocks regardless of size, DYOR.) before deciding to enable that setting.

Yes, I'm actually doing some testing.
I have a question:
if I download BitcoinCore onto an SSD with only 40GB of free space, can I set a limit of 20GB for the blockchain from the beginning, or will it require me to download the entire blockchain first (which is obviously impossible) and after that proceed to prune it?

Thank you
ABCbits
Legendary
*
Offline

Activity: 3682
Merit: 10259



View Profile
December 02, 2025, 08:27:43 AM
Merited by pooya87 (4), vapourminer (1), nc50lc (1)
 #7

I have a question:
if I download BitcoinCore onto an SSD with only 40GB of free space, can I set a limit of 20GB for the blockchain from the beginning, or will it require me to download the entire blockchain first (which is obviously impossible) and after that proceed to prune it?

Yes, you can set pruning size limit from the beginning. Bitcoin Core still download whole blockchain, but it automatically remove older blocks when newly received blocks would exceed the limit. But since the free space is rather small, FYI Bitcoin Core also store other files such as UTXO set in folder "chainstate" that have peak size 12.6GB[1].

[1] https://statoshi.info/d/000000009/unspent-transaction-output-set?orgId=1&from=now-5y&to=now&timezone=browser&refresh=10m

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
satscraper
Legendary
*
Offline

Activity: 1540
Merit: 2867



View Profile
December 02, 2025, 09:15:32 AM
Merited by pooya87 (4), hugeblack (1)
 #8

I have a question:
if I download BitcoinCore onto an SSD with only 40GB of free space, can I set a limit of 20GB for the blockchain from the beginning, or will it require me to download the entire blockchain first (which is obviously impossible) and after that proceed to prune it?

Yeah, you can, but it is better to acquire new SSD because leaving less free space negatively affects SSD performance. Keeping around 20% of the space free is recommended for both performance and endurance, as that free space acts like extra over-provisioning beyond the fixed portion hidden from user by SSD manufacturer.

▄▄███████████████████▄▄
▄███████████████████████▄
████████████████████████
█████████████████████████
████████████████████████
████████████▀██████▀████
████████████████████████
█████████▄▄▄▄███████████
██████████▄▄▄████████████
████████████████████████
████████████████▀▀███████
▀███████████████████████▀
▀▀███████████████████▀▀
 
 EARNBET 
| 🏀
 
🏈 🏓
 
🎯 🥊
 
 🎾
 
 🏐
 
🏏 🏎️
|


███████▄▄███████████
████▄██████████████████
██▀▀███████████████▀▀███
▄████████████████████████
▄▄████████▀▀▀▀▀████████▄▄██
███████████████████████████
█████████▌██▀████████████
███████████████████████████
▀▀███████▄▄▄▄▄█████████▀▀██
▀█████████████████████▀██
██▄▄███████████████▄▄███
████▀██████████████████
███████▀▀███████████

....HIGHEST....
VIP REWARDS

  G U A R A N T E E D   
| 
 🜲 
KING OF
THE CASTLE

$200K in prizes
| 
..PLAY NOW..
SPIDERMAN008
Full Member
***
Offline

Activity: 378
Merit: 189



View Profile
December 02, 2025, 01:36:10 PM
 #9

If you run Bitcoin Core in pruned mode, the previous block data will not be there. The more gb of pruned size you give, the latest  blocks will be downloaded and stored according to your command . But when you download the full node,
"initialblockdownload": true will be displayed, which means that the very first block data is being stored.
"pruned": false, will be displayed because the full node is running here.
I am running the full node myself now.
I have given its output below.

Code:
{
  "chain": "main",
  "blocks": 571868,
  "headers": 926137,
  "bestblockhash": "0000000000000000000e27a49268839c2828f9f11106cde16af920bcbd7f795a",
  "difficulty": 6393023717201.863,
  "time": 1555404598,
  "mediantime": 1555403932,
  "verificationprogress": 0.3017742332385525,
  "initialblockdownload": true,
  "chainwork": "000000000000000000000000000000000000000005d89980c1d56b3889480aff",
  "size_on_disk": 243346966563,
  "pruned": false,
  "warnings": [
  ]
}

And after completing the node, if you do any other work based on it, such as creating lnd, then you will need some more space in that case. Therefore, if 40gb is free, then I think you can increase it up to 30gb depending on your work. If your computer has a drive partition and the other drive is free, then if you want, you can create a single  drive   C and create more space there and give more pruned size value .

Cookdata
Legendary
*
Offline

Activity: 1750
Merit: 1408


Not Your Keys, Not Your Bitcoin


View Profile
December 02, 2025, 07:54:56 PM
 #10

"initialblockdownload": true will be displayed, which means that the very first block data is being stored.

This isn't true and I will like you to come back and very this statement when your node is fully sync.

Initial block download output=true is telling you that your node is still downloading blocks and it's not fully sync yet. You are still left with some blocks to download before you reach the latest block. Once you attain the latest block, initialblockdownload will change to false.

As you can see from your block, you have only downloaded 30.1774%, if you get to 0.99999 or 99.99% initialblockdownload will turn to false.

Quote
"pruned": false, will be displayed because the full node is running here.
I am running the full node myself now.

Yea, you can see from the size_on_disk, if you are running a prune node, the size will not be upto the tha number. You currently have about 200+ gb blocks on your disk.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
nc50lc
Legendary
*
Offline

Activity: 3220
Merit: 8944


Self-proclaimed Genius


View Profile
December 03, 2025, 04:01:06 AM
 #11

-snip-
I have a question:
if I download BitcoinCore onto an SSD with only 40GB of free space, can I set a limit of 20GB for the blockchain from the beginning, or will it require me to download the entire blockchain first (which is obviously impossible) and after that proceed to prune it?
Yes, as I mentioned, you can set it anytime.
You already get the gist of it, if it's the latter, it'll defeat the entire purpose of pruning since the node operator has to provide enough space anyways.

To make it simple:
Since Bitcoin Core in pruned mode is still a full node, so it has to verify each downloaded blocks and it does so as it downloads them, not after downloading all.
After your node is done with a block (verification, scan for transactions, building indexes, etc.) it can decide to delete the earlier ones once it reached your target size.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
0x000369
Member
**
Offline

Activity: 168
Merit: 21


View Profile
December 03, 2025, 04:09:39 AM
 #12

Yes as I mentioned you can set it anytime
You already get the gist of it if it's the latter it'll defeat the entire purpose of pruning since the node operator has to provide enough space anyways
To make it simple
Since Bitcoin Core in pruned mode is still a full node so it has to verify each downloaded blocks and it does so as it downloads them not after downloading all
After your node is done with a block (verification scan for transactions building indexes etc) it can decide to delete the earlier ones once it reached your target size
Yeah man that's exactly how it works no need to download the whole thing first and then prune it would be dumb if it did that
Bitcoin Core is smart it downloads verifies and prunes on the fly so with your 40GB free space setting 20GB should be fine but watch out for the chainstate folder it can spike up to around 13GB or so during sync as ABCbits mentioned
I've done this on a small drive before and it worked but yeah like satscraper said keep some free space for SSD health maybe aim for 25-30% free if you can
If you're tight on space pruning is a lifesaver but remember you lose some features like rescanning old wallets without redownloading everything
ABCbits
Legendary
*
Offline

Activity: 3682
Merit: 10259



View Profile
December 03, 2025, 09:53:00 AM
Merited by vapourminer (1)
 #13

But when you download the full node,
"initialblockdownload": true will be displayed, which means that the very first block data is being stored.
"pruned": false, will be displayed because the full node is running here.

Please don't give false information, help getblockchaininfo give different explanation.

Quote from: help getblockchaininfo
getblockchaininfo

Returns an object containing various state info regarding blockchain processing.

Result:
{                                         (json object)
  "initialblockdownload" : true|false,    (boolean) (debug information) estimate of whether this node is in Initial Block Download mode
  "pruned" : true|false,                  (boolean) if the blocks are subject to pruning
}



Therefore, if 40gb is free, then I think you can increase it up to 30gb depending on your work. If your computer has a drive partition and the other drive is free, then if you want, you can create a single  drive   C and create more space there and give more pruned size value .

Please don't make bad suggestion. I've mentioned peak UTXO set/chainstate size is 12.6GB. So if OP allocate 30GB for block on SSD with 40GB free space, the SSD will run out of space during initial sync.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
gordonics.com
Member
**
Offline

Activity: 200
Merit: 24


View Profile
December 03, 2025, 03:33:01 PM
Merited by vapourminer (1)
 #14

In Bitcoincore29 > Settings > Main
I read
"Prune block storage to  ______ GB"


I have a question.

If I enter "200" in the blank field, the software...

A) ......leaves only the last (most recent) 200 GB of blocks on my SSD
or
B) .....deletes the oldest 200 GB from the blockchain I downloaded (in this case, the floating point cannot exceed the size of the entire blockchain).


It would make sense for A), but I'm asking.


Thank you

Just to be precise, I'd add a piece of information to the correct answer A.

Not only do we have the latest xxGB of blocks, but the headers of ALL previously deleted blocks are preserved (and therefore used space). The headers of the entire blockchain are essential for validating the future new block (Proof-of-Work).

▬▬▬▬▬  ●  Tor Project  |  F R E E   T H E   I N T E R N E T  ●  ▬▬▬▬▬
>>  BREAK THE CHAINS OF CENSORSHIP AND SURVEILLANCE  <<
▬▬▬▬▬▬  ●  ❱❱  Donate now  ❤  ❱❱❱  Power Up Privacy  ❱❱  ●  ▬▬▬▬▬▬
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!