Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: steeev on September 26, 2015, 09:06:01 PM



Title: pruning a linux node question - tip for best answer
Post by: steeev on September 26, 2015, 09:06:01 PM
i'm currently stumbling thru trying to prune on a linux os ( zorin 10) - i got as far as installing bitcoind, and got it started with the bitcoind -daemon command, but then what ?

tried

bitcoin-cli -prune=550

but got

error: too few parameters

err....

a (smallish) tip for anyone who can give me a copy/paste instruction and a short explanation of what i'm doing wrong (with or without amusing insults/mockery etc...)


Title: Re: pruning a linux node question - tip for best answer
Post by: achow101 on September 26, 2015, 09:26:01 PM
I'm fairly certain that you need to include the -prune flag in the bitcoind command when you start the node, not as a bitcoin-cli command. Instead, run
Code:
bitcoind -daemon -prune=550
to start bitcoind.


Title: Re: pruning a linux node question - tip for best answer
Post by: steeev on September 26, 2015, 09:36:11 PM
ahh well done sir, excellent - should i presume the address under your avatar is useable ?


Title: Re: pruning a linux node question - tip for best answer
Post by: achow101 on September 26, 2015, 09:41:54 PM
ahh well done sir, excellent - should i presume the address under your avatar is useable ?
yes


Title: Re: pruning a linux node question - tip for best answer
Post by: shorena on September 26, 2015, 09:49:45 PM
You could also write up a config file, name it bitcoin.conf and put it in the .bitcoin folder.

E.g.:

Code:
server=1
daemon=1
maxconnections=50
disablewallet=1
dbcache=4           #reduce mem usage
rpcthreads=1
prune=40000         #limit to 40GB


Title: Re: pruning a linux node question - tip for best answer
Post by: steeev on September 26, 2015, 09:57:48 PM
A for effort shorena - a tip for you too, if u provide an address, even though job is now done...

thanx to the both of you, i can now get on with watching the expendables...


Title: Re: pruning a linux node question - tip for best answer
Post by: shorena on September 26, 2015, 10:19:08 PM
A for effort shorena - a tip for you too, if u provide an address, even though job is now done...

thanx to the both of you, i can now get on with watching the expendables...

Its not needed, but if you want you can donate to my node -> http://213.165.91.169/

All the funds to that address ( 14GXh8khHXd8p4nQRCQdWi7fvHsNCDBkTG if you dont wana click the link) there will be use to keep it running.