AppInitMain

Bitcoin core main initialization.

Synopsis

Declared in <init.h>

bool
AppInitMain(
    node::NodeContext& node,
    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

NameDescription
nodeThe node context to bring fully online.
tip_infoOptional 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.