Author

Topic: [Bitcoin Core] Where is -datadir -- how to use blocks in alternative directory? (Read 1242 times)

full member
Activity: 189
Merit: 103
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.
hero member
Activity: 803
Merit: 500
Hi,

with bitcoin-qt I used
-datadir= 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=, but it seems not to work.

Anyone knows more?

edit: solved. I should have known the difference between console and command line
Jump to: