Load every block‐index entry from the database into memory.

Synopsis

Declared in <node/blockstorage.h>

bool
LoadBlockIndexGuts(
    Consensus::Params const& consensusParams,
    std::function<CBlockIndex*(uint256 const&)> insertBlockIndex,
    util::SignalInterrupt const& interrupt);

Return Value

True on success, false if loading failed or was interrupted.

Parameters

Name

Description

consensusParams

Consensus parameters used to interpret the stored entries.

insertBlockIndex

Callback that inserts a block index for a given hash and returns it.

interrupt

Interrupt used to abort a long‐running load.

Created with MrDocs