Skip to main content

Module downloads

Module downloads 

Source
Expand description

A download stream that handles gossiped blocks from peers.

Structs§

Downloads
Manages download and verification of blocks gossiped to this peer.

Enums§

DownloadAction
The action taken in response to a peer’s gossiped block hash.
HeightLimitError
A gossiped block was dropped before verification because its coinbase height was outside the accepted range around the chain tip.

Constants§

MAX_INBOUND_CONCURRENCY
The maximum number of concurrent inbound download and verify tasks. Also used as the maximum lookahead limit, before block verification.
PARENT_LOOKUP_TIMEOUT 🔒
How long to wait for the parent-height lookup that decides whether a behind-tip gossiped block was forged.

Functions§

advertiser_if_parent_contradicts 🔒
Returns advertiser_addr if the parent header Zebra already holds proves that a gossiped block’s claimed block_height was rewritten, and None if there is no such proof.

Type Aliases§

BoxError 🔒