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
Inboundservice. - Shared
Recv Error - A wrapper around
Arc<TryRecvError>that implementsError.
EnumsΒ§
ConstantsΒ§
- GETDATA_
MAX_ TRANSACTION_ COUNT - The maximum number of transaction IDs the
Inboundservice will look up in the mempool in response to a transaction request, before ignoring any additional transaction IDs in that request. - GETDATA_
SENT_ BYTES_ LIMIT - The number of bytes the
Inboundservice 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.
FunctionsΒ§
- compact_
request π - Screens compact requests without publishing bodies or caching probabilistic failure verdicts.
- screen_
compact_ πheader - Rejects malformed or unauthenticated headers before exposing local mempool membership.
Type AliasesΒ§
- Block
Download πPeer Set - Gossiped
Block πDownloads - Mempool π
- Semantic
Block πVerifier - State π