HomePhabricator

Only log "Using PATH_TO_bitcoin.conf" message on startup if conf file exists.

Description

Only log "Using PATH_TO_bitcoin.conf" message on startup if conf file exists.

Summary:
Currently we log a message indicating that a bitcoin.conf file is being used
even if one does not exists. This commit changes the logic to only display
this message if a config file exists and logs a separate message
if no config file exists. Additionally, a warning is now logged if the file
path passed in the -conf flag does not exist.

This is a backport of Core PR14057

Test Plan:
Run bitcoind and check the output for

Config file: /home/deadalnix/.bitcoin/bitcoin.conf (not found, skipping)

Reviewers: #bitcoin_abc, nakihito

Reviewed By: nakihito

Differential Revision: https://reviews.bitcoinabc.org/D5811

Details

Provenance
Alexander Leishman <leishman3@gmail.com>Authored on Aug 24 2018, 22:03
deadalnixCommitted on Apr 22 2020, 23:19
deadalnixPushed on Apr 22 2020, 23:19
Reviewer
nakihito
Differential Revision
D5811: Only log "Using PATH_TO_bitcoin.conf" message on startup if conf file exists.
Parents
rABCc5a632bec6c9: [backport#16366] init: Use InitError for all errors in bitcoind/qt
Branches
Unknown
Tags
Unknown