Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
--diagnostics CLI option to check & update config.json file #1733
The --diagnostics CLI option currently outputs wallet.ldb, node.ldb and the log folder. This is because it creates an inactive node and in this process it generates these files if they don't exist. @icarusglider would like a way to create the config.json file without having to start the daemon and then shut it down immediately. A new option was suggested but deemed unnecessary; so the --diagnostics option has been hijacked. However it also checks the validity of the config.json file so it is not as unrelated as originally thought.
The daemon_config class as well as related ipc/rpc config class have been separated from their source files. Not only does it help with #1112 but the cli.cpp file is used by both