Expand description
A download stream that handles gossiped blocks from peers.
Structs§
- Downloads
- Manages download and verification of blocks gossiped to this peer.
Enums§
- Download
Action - The action taken in response to a peer’s gossiped block hash.
- Height
Limit Error - 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_addrif the parent header Zebra already holds proves that a gossiped block’s claimedblock_heightwas rewritten, andNoneif there is no such proof.
Type Aliases§
- BoxError 🔒