Module lightning_block_sync::poll
source · Expand description
Adapters that make one or more BlockSource
s simpler to poll for new chain tip transitions.
Structs§
- The canonical
Poll
implementation used for a singleBlockSource
. - A block with validated data against its transaction list and corresponding block hash.
- A block header with validated proof of work and corresponding block hash.
Enums§
- A chain tip relative to another chain tip in terms of block hash and chainwork.
Traits§
- The
Poll
trait defines behavior for polling block sources for a chain tip and retrieving related chain data. It serves as an adapter forBlockSource
. - The
Validate
trait defines behavior for validating chain data.