![]() |
Bitcoin ABC 0.31.0
P2P Digital Currency
|
Go to the source code of this file.
Namespaces | |
namespace | interfaces |
namespace | kernel |
namespace | node |
Functions | |
void | Interrupt (node::NodeContext &node) |
Interrupt threads. More... | |
void | Shutdown (node::NodeContext &node) |
void | InitLogging (const ArgsManager &args) |
Initialize the logging infrastructure. More... | |
void | InitParameterInteraction (ArgsManager &args) |
Parameter interaction: change current parameters depending on various rules. More... | |
bool | AppInitBasicSetup (const ArgsManager &args) |
Initialize bitcoin: Basic context setup. More... | |
bool | AppInitParameterInteraction (Config &config, const ArgsManager &args) |
Initialization: parameter interaction. More... | |
bool | AppInitSanityChecks (const kernel::Context &kernel) |
Initialization sanity checks. More... | |
bool | AppInitLockDataDirectory () |
Lock bitcoin data directory. More... | |
bool | AppInitInterfaces (node::NodeContext &node) |
Initialize node and wallet interface pointers. More... | |
bool | AppInitMain (Config &config, RPCServer &rpcServer, HTTPRPCRequestProcessor &httpRPCRequestProcessor, node::NodeContext &node, interfaces::BlockAndHeaderTipInfo *tip_info=nullptr) |
Bitcoin main initialization. More... | |
void | SetupServerArgs (node::NodeContext &node) |
Register all arguments with the ArgsManager. More... | |
bool | StartIndexBackgroundSync (node::NodeContext &node) |
Validates requirements to run the indexes and spawns each index initial sync thread. More... | |
Variables | |
static constexpr bool | DEFAULT_DAEMON = false |
Default value for -daemon option. More... | |
static constexpr bool | DEFAULT_DAEMONWAIT = false |
Default value for -daemonwait option. More... | |
bool AppInitBasicSetup | ( | const ArgsManager & | args | ) |
Initialize bitcoin: Basic context setup.
Definition at line 1730 of file init.cpp.
bool AppInitInterfaces | ( | node::NodeContext & | node | ) |
bool AppInitLockDataDirectory | ( | ) |
Lock bitcoin data directory.
Definition at line 2098 of file init.cpp.
bool AppInitMain | ( | Config & | config, |
RPCServer & | rpcServer, | ||
HTTPRPCRequestProcessor & | httpRPCRequestProcessor, | ||
node::NodeContext & | node, | ||
interfaces::BlockAndHeaderTipInfo * | tip_info = nullptr |
||
) |
Bitcoin main initialization.
Register RPC commands regardless of -server setting so they will be available in the GUI RPC console even if external calls are disabled.
Start the RPC server. It will be started in "warmup" mode and not process calls yet (but it will verify that the server is there and will be ready later). Warmup mode will be completed when initialisation is finished.
Definition at line 2120 of file init.cpp.
bool AppInitParameterInteraction | ( | Config & | config, |
const ArgsManager & | args | ||
) |
Initialization: parameter interaction.
Definition at line 1777 of file init.cpp.
bool AppInitSanityChecks | ( | const kernel::Context & | kernel | ) |
Initialization sanity checks.
Definition at line 2082 of file init.cpp.
void InitLogging | ( | const ArgsManager & | args | ) |
Initialize the logging infrastructure.
Initialize the logging infrastructure.
Note that this is called very early in the process lifetime, so you should be careful about what global state you rely on here.
Definition at line 1703 of file init.cpp.
void InitParameterInteraction | ( | ArgsManager & | args | ) |
void Interrupt | ( | node::NodeContext & | node | ) |
void SetupServerArgs | ( | node::NodeContext & | node | ) |
Register all arguments with the ArgsManager.
Definition at line 425 of file init.cpp.
void Shutdown | ( | node::NodeContext & | node | ) |
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.
Definition at line 225 of file init.cpp.
bool StartIndexBackgroundSync | ( | node::NodeContext & | node | ) |
|
staticconstexpr |