Bitcoin
|
Go to the source code of this file.
Classes | |
struct | InitInterfaces |
Pointers to interfaces used during init and destroyed on shutdown. More... | |
Namespaces | |
interfaces | |
boost | |
Functions | |
void | Interrupt () |
void | Shutdown (InitInterfaces &interfaces) |
void | InitLogging () |
Initialize the logging infrastructure. More... | |
void | InitParameterInteraction () |
Parameter interaction: change current parameters depending on various rules. More... | |
bool | AppInitBasicSetup () |
bool | AppInitParameterInteraction () |
bool | AppInitSanityChecks () |
bool | AppInitLockDataDirectory () |
bool | AppInitMain (InitInterfaces &interfaces) |
void | SetupServerArgs () |
std::string | LicenseInfo () |
bool AppInitBasicSetup | ( | ) |
Initialize bitcoin core: Basic context setup.
bool AppInitLockDataDirectory | ( | ) |
Lock bitcoin core data directory.
bool AppInitMain | ( | InitInterfaces & | interfaces | ) |
Bitcoin core main initialization.
bool AppInitParameterInteraction | ( | ) |
Initialization: parameter interaction.
bool AppInitSanityChecks | ( | ) |
Initialization sanity checks: ecc init, sanity checks, dir lock.
void InitLogging | ( | ) |
Initialize the logging infrastructure.
Initialize global loggers.
Note that this is called very early in the process lifetime, so you should be careful about what global state you rely on here.
void InitParameterInteraction | ( | ) |
Parameter interaction: change current parameters depending on various rules.
void Interrupt | ( | ) |
Interrupt threads
std::string LicenseInfo | ( | ) |
Returns licensing information (for -version)
void SetupServerArgs | ( | ) |
Setup the arguments for gArgs
void Shutdown | ( | InitInterfaces & | interfaces | ) |
Note: Shutdown() must be able to handle cases in which initialization failed part of the way, for example if the data directory was found to be locked. Be sure that anything that writes files or flushes caches only does this if the respective module was initialized.