Skip to content
Bitcoin Roots

v31.1-roots.1 · Commit 7: [PATCH 07/17] feat(rpc): preserve Roots operator interfaces on v31

src/init/common.cpp

Before: src/init/common.cpp · After: src/init/common.cpp

File metadata
index cb35c1b4f62ab68e5e8905d94c3c659f9badf348..473176fee4b292ce91f9c02ef4b4b79c573a216a 100644

Download original patch · Release notes

Diff rows 1–15 of 15. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.

src/init/common.cpp CHANGED
@@ -139,6 +139,15 @@ bool StartLogging(const ArgsManager& args)
139
139
  LogInfo("Config file: %s (not found, skipping)", fs::PathToString(config_file_path));
140
140
  }
141
141
 
142
+ const auto rwconfig_file_path{args.GetRWConfigFilePath()};
143
+ if (fs::exists(rwconfig_file_path)) {
144
+ LogInfo("R/W Config file: %s", fs::PathToString(rwconfig_file_path));
145
+ } else if (args.IsArgSet("-confrw")) {
146
+ InitWarning(strprintf(_("The specified R/W config file %s does not exist"), fs::PathToString(rwconfig_file_path)));
147
+ } else {
148
+ LogInfo("R/W Config file: %s (not found, skipping)", fs::PathToString(rwconfig_file_path));
149
+ }
150
+
142
151
  // Log the config arguments to debug.log
143
152
  args.LogArgs();
144
153