Bitcoin Kernel
C header for interacting with the Bitcoin Kernel library.
|
#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. | |
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.
btck_ValidationInterfaceBlockChecked btck_ValidationInterfaceCallbacks::block_checked |
Called when a new block has been fully validated. Contains the result of its validation.
btck_ValidationInterfaceBlockConnected btck_ValidationInterfaceCallbacks::block_connected |
Called when a block is valid and has now been connected to the best chain.
btck_ValidationInterfaceBlockDisconnected btck_ValidationInterfaceCallbacks::block_disconnected |
Called during a re-org when a block has been removed from the best chain.
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.
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.
btck_DestroyCallback btck_ValidationInterfaceCallbacks::user_data_destroy |
Frees the provided user data structure.