[#kernel-BlockTreeDB-LoadBlockIndexGuts] = xref:kernel.adoc[kernel]::xref:kernel/BlockTreeDB.adoc[BlockTreeDB]::LoadBlockIndexGuts :relfileprefix: ../../ :mrdocs: Load every block‐index entry from the database into memory. == Synopsis Declared in `<node/blockstorage.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e39fb0d28), requires_capability(0x7f2e14408a98), requires_capability(0x7f2e28bd2ce8), requires_capability(0x7f2e27770178), requires_capability(0x7f2e2ba05cf8), requires_capability(0x7f2e1c315318)]] bool LoadBlockIndexGuts( xref:Consensus/Params.adoc[Consensus::Params] const& consensusParams, std::function<CBlockIndex*(xref:uint256.adoc[uint256] const&)> insertBlockIndex, xref:util/SignalInterrupt.adoc[util::SignalInterrupt] const& interrupt); ---- == Return Value True on success, false if loading failed or was interrupted. == Parameters [cols="1,4"] |=== | 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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#