Structs§
- A single Block
- A type for a Block hash.
- A block index that is tied to a specific
ChainstateManager
. - Holds the configuration options for a BlockManager, which is used internally by the
ChainstateManager
- The undo data of a block is used internally during re-orgs. It holds the previous transaction outputs of a block’s transactions. This data may be useful for building indexes.
- The chain parameters with which to configure a
Context
. - Holds the configuration options for when loading the on disk state of the
ChainstateManager
. - The chainstate manager is the central object for doing validation tasks as well as retrieving data from the chain. Internally it is a complex data structure with diverse functionality.
- Holds the configuration options for creating a new
ChainstateManager
- The main context struct. This should be setup through the
ContextBuilder
and has to be kept in memory for the duration of context-dependent library operations. - Builder struct for the kernel
Context
. - A callback holder struct for the notification interface calls.
- The logger object logs kernel log messages into a user-defined log function. Messages logged by the kernel before this object is created are buffered in a 1MB buffer. The kernel library internally uses a global logging instance.
- A single script pubkey
- A single transaction.
- A single transaction output.
- A single unowned block. Can only be used for copying data from it.
- A holder struct for validation interface callbacks
Enums§
- A granular reason why a block was invalid.
- The ChainType used to configure the kernel
Context
. - A collection of errors emitted by this library
- Warning state emitted by the kernel warning notification.
- A collection of errors that may occur during script verification
- The current synch state, i.e. whether in reindex, ibd, or complete. Emitted by the block tip notification.
- Whether a validated data structure is valid, invalid, or an error was encountered during processing.
Constants§
Traits§
- Exposes the result after validating a block.
- The chain’s tip was updated to the provided block hash.
- An un-recoverable system error was encountered by the library.
- An error was encountered when flushing data to disk.
- A new best block header was added.
- A function for handling log messages produced by the kernel library.
- Reports on the current synchronization progress.
- A warning state issued by the kernel during validation.
- A previous condition leading to the issuance of a warning is no longer given.
Functions§
- Permanently disable logging and stop buffering.
- Verifies a transaction input against its corresponding output script.