5#ifndef BITCOIN_COMMON_INIT_H
6#define BITCOIN_COMMON_INIT_H
37 const bilingual_str &message,
const std::vector<std::string> &details)>;
42std::optional<ConfigError>
std::optional< ConfigError > InitConfig(ArgsManager &args, SettingsAbortFn settings_abort_fn)
Read config files, and create datadir and settings.json if they don't exist.
@ ABORTED
Aborted by user.
@ FAILED_WRITE
Failed to write settings.json.
@ FAILED
Failed generically.
std::function< bool(const bilingual_str &message, const std::vector< std::string > &details)> SettingsAbortFn
Callback function to let the user decide whether to abort loading if settings.json file exists and ca...
std::vector< std::string > details