node::ImportBlocks

Load blocks from the given files and activate the best chain, even if none are imported.

Synopsis

Declared in <node/blockstorage.h>

void
ImportBlocks(
    ChainstateManager& chainman,
    std::span<fs::path const> import_paths);

Parameters

NameDescription
chainmanThe chainstate manager to load blocks into and activate.
import_pathsPaths of external block files to import.