Expand description
RX-chain head bookkeeping shared by the RX gate-insertion passes.
Each synthesized wire::Recv carries a RX_CHAIN_HEAD_KEY
metadata entry naming the currently-effective output that
downstream consumers read from. Initial value is the Recv’s own
output[0]; each RX gate pass replaces it with the gate’s
output. Successive passes consult this to chain themselves in
order: Recv → DedupGateRx → PeerHealthGateRx → BackoffGateRx.
Constants§
- RX_
CHAIN_ HEAD_ KEY - Metadata key on a
wire::Recvcarrying its current RX-chain head.
Functions§
- rx_
chain_ head - Current RX-chain head for
recv- the output name downstream consumers read from. Defaults torecv.output[0]when no gate has yet been inserted. - set_
rx_ chain_ head - Set the RX-chain head metadata on
recvtonew_head.