Changeset View
Changeset View
Standalone View
Standalone View
src/init.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
bool AppInitBasicSetup(); | bool AppInitBasicSetup(); | ||||
/** | /** | ||||
* Initialization: parameter interaction. | * Initialization: parameter interaction. | ||||
* @note This can be done before daemonization. | * @note This can be done before daemonization. | ||||
* Do not call Shutdown() if this function fails. | * Do not call Shutdown() if this function fails. | ||||
* @pre Parameters should be parsed and config file should be read, | * @pre Parameters should be parsed and config file should be read, | ||||
* AppInitBasicSetup should have been called. | * AppInitBasicSetup should have been called. | ||||
*/ | */ | ||||
bool AppInitParameterInteraction(Config &config, RPCServer &rpcServer); | bool AppInitParameterInteraction(Config &config); | ||||
/** | /** | ||||
* Initialization sanity checks: ecc init, sanity checks, dir lock. | * Initialization sanity checks: ecc init, sanity checks, dir lock. | ||||
* @note This can be done before daemonization. | * @note This can be done before daemonization. | ||||
* Do not call Shutdown() if this function fails. | * Do not call Shutdown() if this function fails. | ||||
* @pre Parameters should be parsed and config file should be read, | * @pre Parameters should be parsed and config file should be read, | ||||
* AppInitParameterInteraction should have been called. | * AppInitParameterInteraction should have been called. | ||||
*/ | */ | ||||
bool AppInitSanityChecks(); | bool AppInitSanityChecks(); | ||||
/** | /** | ||||
* Lock bitcoin data directory. | * Lock bitcoin data directory. | ||||
* @note This should only be done after daemonization. | * @note This should only be done after daemonization. | ||||
* Do not call Shutdown() if this function fails. | * Do not call Shutdown() if this function fails. | ||||
* @pre Parameters should be parsed and config file should be read, | * @pre Parameters should be parsed and config file should be read, | ||||
* AppInitSanityChecks should have been called. | * AppInitSanityChecks should have been called. | ||||
*/ | */ | ||||
bool AppInitLockDataDirectory(); | bool AppInitLockDataDirectory(); | ||||
/** | /** | ||||
* Bitcoin main initialization. | * Bitcoin main initialization. | ||||
* @note This should only be done after daemonization. | * @note This should only be done after daemonization. | ||||
* @pre Parameters should be parsed and config file should be read, | * @pre Parameters should be parsed and config file should be read, | ||||
* AppInitLockDataDirectory should have been called. | * AppInitLockDataDirectory should have been called. | ||||
*/ | */ | ||||
bool AppInitMain(Config &config, | bool AppInitMain(Config &config, RPCServer &rpcServer, | ||||
HTTPRPCRequestProcessor &httpRPCRequestProcessor); | HTTPRPCRequestProcessor &httpRPCRequestProcessor); | ||||
/** The help message mode determines what help message to show */ | /** The help message mode determines what help message to show */ | ||||
enum class HelpMessageMode { BITCOIND, BITCOIN_QT }; | enum class HelpMessageMode { BITCOIND, BITCOIN_QT }; | ||||
/** Help for options shared between UI and daemon (for -help) */ | /** Help for options shared between UI and daemon (for -help) */ | ||||
std::string HelpMessage(HelpMessageMode mode); | std::string HelpMessage(HelpMessageMode mode); | ||||
/** Returns licensing information (for -version) */ | /** Returns licensing information (for -version) */ | ||||
std::string LicenseInfo(); | std::string LicenseInfo(); | ||||
#endif // BITCOIN_INIT_H | #endif // BITCOIN_INIT_H |