Expand description
Opt-in compact block transport for committed blocks.
A negotiated peer announces a new block as its header, short transaction IDs and coinbase.
The receiver rebuilds the block from its mempool, asks once for the transactions it is missing,
and falls back to an ordinary getdata on any problem. Consensus checks and source scoring
remain in the ordinary downloader.
Structsยง
- Compact
Relay ๐ - Serving
Block ๐
Constantsยง
- ANNOUNCED_
BLOCKS ๐ - The number of blocks a connection remembers its peer announcing in compact form.
- MAX_
RECOVERY_ ๐REPLIES - The number of transaction recovery requests answered for each delivered announcement.
- RECOVERY_
TIMEOUT ๐ - RETENTION ๐
Staticsยง
- RECEIVED_
SLOTS ๐ - SENT_
SLOTS ๐
Functionsยง
- encoded_
size ๐ - Returns the number of bytes in
valueโs encoding, orNoneif its encoding fails. - response_
timer ๐ - Returns the timer for the response to
handler. - smaller_
announcement ๐ - Returns
compactif its encoding is smaller thanblockโs encoding.