Author

Topic: [SOLVED] Prune setting in bitcoin.conf not working (Read 547 times)

legendary
Activity: 2030
Merit: 1076
BTCLife.global participant
It's OK now.  Wink
HCP
legendary
Activity: 2086
Merit: 4318
Are you using a custom datadir or the Bitcoin Core default? What does it say for "datadir" on the "Help -> Debug Window -> Information" window?

what is the value of your "prune" setting in bitcoin.conf?
legendary
Activity: 2030
Merit: 1076
BTCLife.global participant
Not solved. My getblockchaininfo shows pruned=true, but the blockchain folder's size doesn't decrease.

Windows 7 x64, Bitcoin Core 0.15.1.
newbie
Activity: 9
Merit: 0

I don't think that is right. You should be getting a "Block not available (pruned data)" error. Are you sure the hash was correct?
You're right, I had a typo and when I corrected it, it gave me back all the details for an early block. So it's wasn't pruning.

When I went to get my bitcoin.conf file to post I saw that my pruning command had a dash in front of it (-prune=9054), I had copied it from another forum post  Undecided  I removed the dash and now getblockchaininfo shows pruned=true and my blocks directory is 9.4GB.

Thanks for your time and answers!

staff
Activity: 3458
Merit: 6793
Just writing some code
getblockchaininfo shows blocks: 251979
I put in the block hash for one of Satoshi's early blocks and it gives me error code: -5 Block not found.
I don't think that is right. You should be getting a "Block not available (pruned data)" error. Are you sure the hash was correct?

I put in the block hash for a block that is just behind my sync height and it gives all the details for that block.

So that suggests it is pruning, but then why does my getblockchaininfo show pruned=false,
Bitcoin Core does not think that it is pruned, and it probably isn't given that the variable it asks for that value is used elsewhere in the code to check for pruned-ness

and why is my data directory bigger than the limit I set?
Note that the datadir will be a few GB larger than the prune size because the datadir contains more than just the blockchain. It also holds the databases, your wallet file, and a few other files which consist of about 3-4 GB of additional space. The prune size only governs the blockchain data.


Can you post your debug.log file and the contents of your bitcoin.conf file?
newbie
Activity: 9
Merit: 0

How large is your datadir?
My blocks directory in my .bitcoin directory is 13GB and growing.

What block is your node synced up to? If you call getblock on a block that is more than 9054 blocks behind the block height your node is synced up to, what does it respond with?

getblockchaininfo shows blocks: 251979
I put in the block hash for one of Satoshi's early blocks and it gives me error code: -5 Block not found.
I put in the block hash for a block that is just behind my sync height and it gives all the details for that block.

So that suggests it is pruning, but then why does my getblockchaininfo show pruned=false, and why is my data directory bigger than the limit I set?



staff
Activity: 3458
Merit: 6793
Just writing some code
How large is your datadir?

What block is your node synced up to? If you call getblock on a block that is more than 9054 blocks behind the block height your node is synced up to, what does it respond with?
newbie
Activity: 9
Merit: 0
Version: 0.15.1
Hardware: Raspberry Pi 3
OS: Raspian/Linux
I added the line prune=9054 in my bitcoin.conf file in the .bitcoin directory before starting up this node for the first time.

When I start up the node and then run bitcoin-cli getblockchaininfo, it shows pruned=false.
Also, I have confirmed the size of my .bitcoin directory exceeds the 9054MB size setting I gave it.

Anyone know why it would be ignoring my prune setting?




Jump to: