#[repr(C)]pub struct btck_ValidationInterfaceCallbacks {
pub user_data: *mut c_void,
pub user_data_destroy: btck_DestroyCallback,
pub block_checked: btck_ValidationInterfaceBlockChecked,
pub pow_valid_block: btck_ValidationInterfacePoWValidBlock,
pub block_connected: btck_ValidationInterfaceBlockConnected,
pub block_disconnected: btck_ValidationInterfaceBlockDisconnected,
}Expand description
Holds the validation interface callbacks. The user data pointer may be used to point to user-defined structures to make processing the validation callbacks easier. Note that these callbacks block any further validation execution when they are called.
Fields§
§user_data: *mut c_void!< Holds a user-defined opaque structure that is passed to the validation !< interface callbacks. If user_data_destroy is also defined ownership of the !< user_data is passed to the created context options and subsequently context.
user_data_destroy: btck_DestroyCallback!< Frees the provided user data structure.
block_checked: btck_ValidationInterfaceBlockChecked!< Called when a new block has been fully validated. Contains the !< result of its validation.
pow_valid_block: btck_ValidationInterfacePoWValidBlock!< Called when a new block extends the header chain and has a valid transaction !< and segwit merkle root.
block_connected: btck_ValidationInterfaceBlockConnected!< Called when a block is valid and has now been connected to the best chain.
block_disconnected: btck_ValidationInterfaceBlockDisconnected!< Called during a re-org when a block has been removed from the best chain.
Trait Implementations§
Source§impl Clone for btck_ValidationInterfaceCallbacks
impl Clone for btck_ValidationInterfaceCallbacks
Source§fn clone(&self) -> btck_ValidationInterfaceCallbacks
fn clone(&self) -> btck_ValidationInterfaceCallbacks
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more