[#AppInitMain]
= AppInitMain
:mrdocs:

Bitcoin core main initialization&period;

== Synopsis

Declared in `&lt;init&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
AppInitMain(
    xref:node/NodeContext.adoc[node::NodeContext]& node,
    xref:interfaces/BlockAndHeaderTipInfo.adoc[interfaces::BlockAndHeaderTipInfo]* tip&lowbar;info = nullptr);
----

== Description

[NOTE]
====
This should only be done after daemonization&period; Call Shutdown() if this function fails&period;

====

== Return Value

true if main initialization succeeded&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *node*
| The node context to bring fully online&period;
| *tip&lowbar;info*
| Optional output filled with the current block and header tip info&period;
|===

== Preconditions

* Parameters should be parsed and config file should be read, AppInitLockDirectories should have been called&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
