Load every block-index entry from the database into memory.
Declared in <node/blockstorage.h>
[[requires_capability(0x7f9516bb0f48), requires_capability(0x7f951d7051f8), requires_capability(0x7f9525a3b5c8), requires_capability(0x7f951e1cd458), requires_capability(0x7f9508635b18), requires_capability(0x7f94f1866298)]]
bool
LoadBlockIndexGuts(
Consensus::Params const& consensusParams,
std::function<CBlockIndex*(uint256 const&)> insertBlockIndex,
util::SignalInterrupt const& interrupt);
True on success, false if loading failed or was interrupted.
| 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. |