Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: C. Bergmann on March 20, 2014, 06:36:43 PM



Title: [Bitcoin Core] Where is -datadir -- how to use blocks in alternative directory?
Post by: C. Bergmann on March 20, 2014, 06:36:43 PM
Hi,

with bitcoin-qt I used
-datadir=<directory> to redirect qt on another directory to save the blocks (had them on another hd).
My c:\ is pretty full, the complete blockchain would be too much, so it is important for me to redirect the client to use the btc.

Now I updated the client, and it has to reconstruct alle those blocks. I think it won't fit in my hd.

I tried to use -datadir in the console, but it didn't work. My .conf still has the line datadir=<d:\...>, but it seems not to work.

Anyone knows more?

<b>edit</b>: solved. I should have known the difference between console and command line


Title: Re: [Bitcoin Core] Where is -datadir -- how to use blocks in alternative directory?
Post by: yabtcl on March 20, 2014, 08:35:57 PM
you can't use -datadir on the configuration file:


From https://en.bitcoin.it/wiki/Running_Bitcoin#Bitcoin.conf_Configuration_File
Quote
Bitcoin.conf Configuration File

All command-line options (except for -datadir and -conf) may be specified in a configuration file, and all configuration file options may also be specified on the command line. Command-line options override values set in the configuration file.