libbitcoinkernel_sys

Function kernel_validation_interface_create

Source
pub unsafe extern "C" fn kernel_validation_interface_create(
    validation_interface_callbacks: kernel_ValidationInterfaceCallbacks,
) -> *mut kernel_ValidationInterface
Expand description

@brief Creates a new validation interface for consuming events issued by the chainstate manager. The interface should be created and registered before the chainstate manager is created to avoid missing validation events.

@param[in] validation_interface_callbacks The callbacks used for passing validation information to the user. @return A validation interface. This should remain in memory for as long as the user expects to receive validation events.