Skip to main content

PENDING_SURB_HORIZON

Constant PENDING_SURB_HORIZON 

Source
const PENDING_SURB_HORIZON: Duration;
Expand description

How long a minted SURB stays eligible to be matched with its reply.

Not PENDING_SURB_TTL: a FIFO replier spends its oldest SURB first, so a reply comes home on a SURB minted about stock / reply rate earlier — 128 s for the deployed 19 264-SURB stock at 150 replies per second, and more for a quiet session. Expiring the association at the race timeout left every reply of such a session unmatched: no race, no reply evidence, no verdict and no SURB generation advance, while its Exit spent a dead relayer’s SURBs into the void. The map holds what is outstanding at the counterparty, so its size is bounded by the stock and the loss rate, not by this horizon; the byte budget of SurbRoundTripRegistry::with_budget bounds it. The horizon is enforced by SurbRoundTripRegistry::expire_step, which the flush runs every tick.