Module block_downloader

Source
Expand description

§Block Downloader

This module contains the block downloader, which finds a chain to download from our connected peers and downloads it. See the actual struct documentation for implementation details.

The block downloader is started by download_blocks.

Structs§

BlockBatch
A downloaded batch of blocks.
BlockDownloaderConfig
The block downloader config.

Enums§

ChainSvcRequest
The request type for the chain service.
ChainSvcResponse
The response type for the chain service.

Functions§

download_blocks
This function starts the block downloader and returns a BufferStream that will produce a sequential stream of blocks.