Module lightning_block_sync::poll
source · Expand description
Adapters that make one or more BlockSources simpler to poll for new chain tip transitions.
Structs
- The canonical
Pollimplementation 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
Polltrait defines behavior for polling block sources for a chain tip and retrieving related chain data. It serves as an adapter forBlockSource. - The
Validatetrait defines behavior for validating chain data.