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>

[[nodiscard, __nonnull__]]
int
btck_chainstate_manager_import_blocks(
    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 should not be discarded.

Parameters

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.

Created with MrDocs