[#AppInitMain] = AppInitMain :mrdocs: Bitcoin core main initialization. == Synopsis Declared in `<init.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool AppInitMain( xref:node/NodeContext.adoc[node::NodeContext]& node, xref:interfaces/BlockAndHeaderTipInfo.adoc[interfaces::BlockAndHeaderTipInfo]* tip_info = nullptr); ---- == Description [NOTE] ==== This should only be done after daemonization. Call Shutdown() if this function fails. ==== == Return Value true if main initialization succeeded. == Parameters [cols="1,4"] |=== | Name| Description | *node* | The node context to bring fully online. | *tip_info* | Optional output filled with the current block and header tip info. |=== == Preconditions * Parameters should be parsed and config file should be read, AppInitLockDirectories should have been called. [.small]#Created with https://www.mrdocs.com[MrDocs]#