Expand description
The inbound service handles requests from Zebraโs peers.
It downloads and verifies gossiped blocks and mempool transactions, when Zebra is close to the chain tip.
It also responds to peer requests for blocks, transactions, and peer addresses.
Modulesยง
- cached_
peer_ ๐addr_ response - Periodically-refreshed GetAddr response for the inbound service.
- downloads ๐
- A download stream that handles gossiped blocks from peers.
Structsยง
- Inbound
- Uses the node state to respond to inbound peer requests.
- Inbound
Setup Data - The services used by the
Inbound
service. - Shared
Recv Error - A wrapper around
Arc<TryRecvError>
that implementsError
.
Enumsยง
Constantsยง
- GETDATA_
MAX_ BLOCK_ COUNT - The maximum number of blocks the
Inbound
service will queue in response to a block request, before ignoring any additional block IDs in that request. - GETDATA_
SENT_ BYTES_ LIMIT - The number of bytes the
Inbound
service will queue in response to a single block or transaction request, before ignoring any additional block or transaction IDs in that request. - MAX_
INBOUND_ RESPONSE_ TIME - The maximum amount of time an inbound service response can take.
Type Aliasesยง
- Block
Download ๐Peer Set - Gossiped
Block ๐Downloads - Mempool ๐
- Semantic
Block ๐Verifier - State ๐