Bitcoin ABC 0.32.4
P2P Digital Currency
Classes | Typedefs | Enumerations | Functions
common Namespace Reference

Classes

struct  ConfigError
 

Typedefs

using SettingsAbortFn = std::function< bool(const bilingual_str &message, const std::vector< std::string > &details)>
 Callback function to let the user decide whether to abort loading if settings.json file exists and can't be parsed, or to ignore the error and overwrite the file. More...
 

Enumerations

enum class  ConfigStatus { FAILED , FAILED_WRITE , ABORTED }
 

Functions

std::optional< ConfigErrorInitConfig (ArgsManager &args, SettingsAbortFn settings_abort_fn=nullptr)
 Read config files, and create datadir and settings.json if they don't exist. More...
 

Typedef Documentation

◆ SettingsAbortFn

using common::SettingsAbortFn = typedef std::function<bool( const bilingual_str &message, const std::vector<std::string> &details)>

Callback function to let the user decide whether to abort loading if settings.json file exists and can't be parsed, or to ignore the error and overwrite the file.

Definition at line 36 of file init.h.

Enumeration Type Documentation

◆ ConfigStatus

enum class common::ConfigStatus
strong
Enumerator
FAILED 

Failed generically.

FAILED_WRITE 

Failed to write settings.json.

ABORTED 

Aborted by user.

Definition at line 18 of file init.h.

Function Documentation

◆ InitConfig()

std::optional< ConfigError > common::InitConfig ( ArgsManager args,
SettingsAbortFn  settings_abort_fn 
)

Read config files, and create datadir and settings.json if they don't exist.

Definition at line 19 of file init.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: