Bitcoin Kernel
C header for interacting with the Bitcoin Kernel library.
Loading...
Searching...
No Matches
Data Fields
btck_ValidationInterfaceCallbacks Struct Reference

#include <bitcoinkernel.h>

Data Fields

void * user_data
 
btck_DestroyCallback user_data_destroy
 Frees the provided user data structure.
 
btck_ValidationInterfaceBlockChecked block_checked
 
btck_ValidationInterfacePowValidBlock pow_valid_block
 
btck_ValidationInterfaceBlockConnected block_connected
 Called when a block is valid and has now been connected to the best chain.
 
btck_ValidationInterfaceBlockDisconnected block_disconnected
 Called during a re-org when a block has been removed from the best chain.
 

Detailed 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.

Field Documentation

◆ block_checked

btck_ValidationInterfaceBlockChecked btck_ValidationInterfaceCallbacks::block_checked

Called when a new block has been fully validated. Contains the result of its validation.

◆ block_connected

btck_ValidationInterfaceBlockConnected btck_ValidationInterfaceCallbacks::block_connected

Called when a block is valid and has now been connected to the best chain.

◆ block_disconnected

btck_ValidationInterfaceBlockDisconnected btck_ValidationInterfaceCallbacks::block_disconnected

Called during a re-org when a block has been removed from the best chain.

◆ pow_valid_block

btck_ValidationInterfacePowValidBlock btck_ValidationInterfaceCallbacks::pow_valid_block

Called when a new block extends the header chain and has a valid transaction and segwit merkle root.

◆ user_data

void* btck_ValidationInterfaceCallbacks::user_data

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 btck_ValidationInterfaceCallbacks::user_data_destroy

Frees the provided user data structure.


The documentation for this struct was generated from the following file: