[#btck_chainstate_manager_import_blocks] = btck_chainstate_manager_import_blocks :mrdocs: Triggers the start of a reindex if the wipe options were previously set for the chainstate manager. Can also import an array of existing block files selected by the user. == Synopsis Declared in `<kernel/bitcoinkernel.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard, __nonnull__]] int btck_chainstate_manager_import_blocks( xref:btck_ChainstateManager-0e.adoc[btck_ChainstateManager]* chainstate_manager, char const** block_file_paths_data, size_t* block_file_paths_lens, size_t block_file_paths_data_len); ---- == Return Value 0 if the import blocks call was completed successfully, non‐zero otherwise. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *chainstate_manager* [in] | Non‐null. | *block_file_paths_data* [in] | Nullable, array of block files described by their full filesystem paths. | *block_file_paths_lens* [in] | Nullable, array containing the lengths of each of the paths. | *block_file_paths_data_len* [in] | Length of the block_file_paths_data and block_file_paths_len arrays. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#