Function kernel_chainstate_manager_create

Source
pub unsafe extern "C" fn kernel_chainstate_manager_create(
    context: *const kernel_Context,
    chainstate_manager_options: *const kernel_ChainstateManagerOptions,
) -> *mut kernel_ChainstateManager
Expand description

@brief Create a chainstate manager. This is the main object for many validation tasks as well as for retrieving data from the chain and interacting with its chainstate and indexes. It is only valid for as long as the passed in context also remains in memory.

@param[in] chainstate_manager_options Non-null, created by @ref kernel_chainstate_manager_options_create. @param[in] context Non-null, the created chainstate manager will associate with this kernel context for the duration of its lifetime. The same context needs to be used for later interactions with the chainstate manager. @return The allocated chainstate manager, or null on error.