Skip to main content

Module resolve

Module resolve 

Source
Expand description

The stage that turns a [DestinationRouting] into a [ResolvedTransportRouting] for every packet this node originates.

It sits between the merged outgoing-data stream and the SPHINX encoder, so every packet the node originates passes through it: session payloads, Start-protocol replies, SURB keep-alives, probes and cover traffic. Forwarded packets and acknowledgements do not โ€” they are relayed from inside the ingress pipeline and never reach this stage.

That asymmetry is why this stage deserves its own tests: a fault here silences origination node-wide while forwarding, acking and receiving carry on looking perfectly healthy.

Constantsยง

DEFAULT_SURB_RESOLUTION_WAIT ๐Ÿ”’
Default for PacketPipelineConfig::surb_resolution_wait, used when it is unset.
SURB_RETRY_INTERVAL ๐Ÿ”’
How often a return route whose SURBs have not arrived is retried.

Functionsยง

resolve_routing_stage ๐Ÿ”’
Resolves the routing of every outgoing packet, emitting the resolved packets in submission order.
surb_resolution_wait ๐Ÿ”’
The wait a node should use, given what its configuration says.