Bitcoin Pruning Issue: Update and Resolution
From Bitcoin Core v27.1.0, a recent update caused pruning, the blockchain data optimization process to break significantly. This problem affects users who allowed pruning in their wallets.
The problem
To illustrate the problem, let’s go through what happens when you enable pruning with a limit of 6 GB. Here is what is happening:
- Bitcoin Core Downloads and processes your wallet.
- The process generates approximately 14 GB of data.
- Pruning is activated to optimize this data by removing redundant blocks.
However, instead of pruning the entire header of the block, it seems that pruning has stopped at about 6 GB, leaving a significant amount of unnecessary data.
The consequences
This problem can lead to various problems:
* Resource Consumption
: Your computer can consume more features (CPU and memory) than necessary, potentially decreasing your system.
* Storage space residues : If you do not prune the whole header of the block, you will have unnecessary storage space in the portfolio directory.
Resolution
To solve this problem, follow these steps:
- Bitcoin Core v27.1.0 or later : Make sure you are running a version of the bitcoin core that supports pruning. If you are using an older version, consider updating immediately.
2.
* Stop your wallet (for example, bitcoin-qt stop
).
* Manually remove the .bitcoin/
directory, including any subdirects.
- Manually pruning the block header :
To manually prune the block header, you will need to download and process blockchain data separately. You can do this by:
* Download a copy of Bitcoin Block’s latest header ( (
* Creating a new wallet in this directory.
* Editing the Bitcoin.conf
file to activate pruning and specify the block header download location.
Example:
`Bash
Bitcoind -Datadir ~/.bitcoin -prune = 6000
`
IMPORTANT NOTE
: Pruning manually the block header can be prone to errors as it requires manual intervention. If you are unsure about the process or finding errors, consider seeking help from a bitcoin expert or online community.
Following these steps and updating to a compatible version of Bitcoin Core, you can solve the pruning problem and enjoy a more efficient wallet experience.