Worked for me on 0.9.2.1 anyway.
-datadir is now allowed in config files #4510
pull zw wants to merge 1 commits into bitcoin:master from zw:datadir changing 1 files +1 −1-
zw commented at 1:09 AM on July 12, 2014: contributor
-
-datadir is now allowed in config files 6b407e4e56
-
BitcoinPullTester commented at 1:41 AM on July 12, 2014: none
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4510_6b407e4e56dc82a8591c668401add49b6d128c87/ for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.
-
laanwj commented at 7:38 AM on July 12, 2014: member
ACK. Indeed. You can specify -datadir in the config file. This is especially useful if you specify -conf, as you can define a whole configuration from the config file.
This is good as it replaces 'datadir-based' thinking, where the datadir defines where the configuration file is. After all there are good reasons to keep configuration files and data in separate places. See also #4124.
-
sipa commented at 5:56 PM on July 12, 2014: member
ACK
- laanwj merged this on Jul 14, 2014
- laanwj closed this on Jul 14, 2014
- laanwj referenced this in commit 08c6339124 on Jul 14, 2014
-
dcousens commented at 5:02 AM on July 31, 2015: contributor
What is the syntax for
-datadirin the configuration file?edit: seems that it is just
datadir=/your/path/here - MarcoFalke locked this on Sep 8, 2021