Skip to main content

btck_chainstate_manager_import_blocks

Function btck_chainstate_manager_import_blocks 

Source
pub unsafe extern "C" fn btck_chainstate_manager_import_blocks(
    chainstate_manager: *mut btck_ChainstateManager,
    block_file_paths_data: *mut *const c_char,
    block_file_paths_lens: *mut usize,
    block_file_paths_data_len: usize,
) -> c_int
Expand description

@brief 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.

@param[in] chainstate_manager Non-null. @param[in] block_file_paths_data Nullable, array of block files described by their full filesystem paths. @param[in] block_file_paths_lens Nullable, array containing the lengths of each of the paths. @param[in] block_file_paths_data_len Length of the block_file_paths_data and block_file_paths_len arrays. @return 0 if the import blocks call was completed successfully, non-zero otherwise.