pub unsafe extern "C" fn kernel_context_create(
context_options: *const kernel_ContextOptions,
) -> *mut kernel_Context
Expand description
@brief Create a new kernel context. If the options have not been previously set, their corresponding fields will be initialized to default values; the context will assume mainnet chain parameters and won’t attempt to call the kernel notification callbacks.
@param[in] context_options Nullable, created by @ref kernel_context_options_create. @return The allocated kernel context, or null on error.