[#node-ImportBlocks]
= xref:node.adoc[node]::ImportBlocks
:relfileprefix: ../
:mrdocs:

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

== Synopsis

Declared in `&lt;node&sol;blockstorage&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
ImportBlocks(
    xref:ChainstateManager.adoc[ChainstateManager]& chainman,
    std::span&lt;fs::path const&gt; import&lowbar;paths);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *chainman*
| The chainstate manager to load blocks into and activate&period;
| *import&lowbar;paths*
| Paths of external block files to import&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
