Bitcoin Forum
May 07, 2024, 07:24:43 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [SOLVED] Prune setting in bitcoin.conf not working  (Read 539 times)
the_genesis_block (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
October 11, 2017, 02:10:49 AM
Last edit: October 11, 2017, 03:41:30 AM by the_genesis_block
 #1

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?




1715066683
Hero Member
*
Offline Offline

Posts: 1715066683

View Profile Personal Message (Offline)

Ignore
1715066683
Reply with quote  #2

1715066683
Report to moderator
1715066683
Hero Member
*
Offline Offline

Posts: 1715066683

View Profile Personal Message (Offline)

Ignore
1715066683
Reply with quote  #2

1715066683
Report to moderator
"Your bitcoin is secured in a way that is physically impossible for others to access, no matter for what reason, no matter how good the excuse, no matter a majority of miners, no matter what." -- Greg Maxwell
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715066683
Hero Member
*
Offline Offline

Posts: 1715066683

View Profile Personal Message (Offline)

Ignore
1715066683
Reply with quote  #2

1715066683
Report to moderator
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6595


Just writing some code


View Profile WWW
October 11, 2017, 02:13:44 AM
 #2

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?

the_genesis_block (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
October 11, 2017, 02:36:58 AM
 #3


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?



achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6595


Just writing some code


View Profile WWW
October 11, 2017, 03:10:04 AM
Last edit: October 11, 2017, 03:43:49 AM by achow101
 #4

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?

the_genesis_block (OP)
Newbie
*
Offline Offline

Activity: 9
Merit: 0


View Profile
October 11, 2017, 03:40:24 AM
 #5


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!

Rabinovitch
Legendary
*
Offline Offline

Activity: 2030
Merit: 1076


BTCLife.global participant


View Profile
December 08, 2017, 08:06:11 AM
 #6

Not solved. My getblockchaininfo shows pruned=true, but the blockchain folder's size doesn't decrease.

Windows 7 x64, Bitcoin Core 0.15.1.

From Siberia with love! Hosting by Rabinovitch!
Fundraising for BOINC Farm
Пpoфeccиoнaльнo зaнимaюcь paзвёpтывaниeм фepм (ASIC, GPU, BURST, STORJ, Filecoin), oбopyдoвaниeм пoмeщeний для мaйнингa.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4316

<insert witty quote here>


View Profile
December 09, 2017, 01:36:52 AM
 #7

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?

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Rabinovitch
Legendary
*
Offline Offline

Activity: 2030
Merit: 1076


BTCLife.global participant


View Profile
December 09, 2017, 07:39:51 AM
 #8

It's OK now.  Wink

From Siberia with love! Hosting by Rabinovitch!
Fundraising for BOINC Farm
Пpoфeccиoнaльнo зaнимaюcь paзвёpтывaниeм фepм (ASIC, GPU, BURST, STORJ, Filecoin), oбopyдoвaниeм пoмeщeний для мaйнингa.
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!