Where is the configuration file?

2

This is strange!

The documentation on running the Bitcoin daemon on a Ubuntu machine is clear. The configuration file is supposed to be at $HOME/.bitcoin/ location. And yet, I cannot locate it! I looked for clues at /etc, /var, and /tmp too; nothing there. In fact, in one of my attempts to launch the daemon, the debug.log (created at $HOME/.bitcoin/) did call out the configuration file to be $HOME/.bitcoin/bitcoin.conf but the file itself wouldn't be listed. Permissions? - I don't know.

Can you please tell me where to look for this file?

This is on Ubuntu-16.04, 64-bit where bitcoin was installed via PPA. Yes; I am working with Bitcoin code for the first time.

cogitoergosum

Posted 2017-01-25T09:18:12.367

Reputation: 317

Answers

4

The configuration file is definitely in $HOME/.bitcoin/. If you cannot see it, the most likely explanation is that you have not created it. Just use your favorite text editor to do so. As far as I can tell, bitcoind -daemon will run without bitcoin.conf being present and you will still get the message 'Using config file /home/user/.bitcoin/bitcoin.conf' in debug.log even when no file exists.

Sven Williamson

Posted 2017-01-25T09:18:12.367

Reputation: 1 404

"As far as I can tell, bitcoind -daemon will run without bitcoin.conf being present" That helps; thanks for pointing this out. – cogitoergosum – 2017-01-25T09:47:50.617

2Is it possible to query the running bitcoind process to ask it where the bitcoin.conf file it's reading from is located, if any? – mecampbellsoup – 2018-03-26T20:23:48.470