Currently we log a message indicating that a bitcoin.conf file is being used even if one does not exist. This PR changes the logic to:
If config file does not exist and no -conf flag passed, log:
Config file: FILE_PATH (not found, skipping)
. Where FILE_PATH
is the default or the path passed in with the -conf
flag.
If config file does not exist and -conf flag passed with incorrect path, log warning:
Warning: The specified config file FILE_PATH does not exist
If config file exists, log:
Config file: FILE_PATH
Note: This is a (modified) subset of changes introduced in #13761 which creates a default example config file. I think it makes sense to extract this small bit out into a separate PR.