Skip to main content

MINIMUM_PENDING_SURB_MAX_BYTES

Constant MINIMUM_PENDING_SURB_MAX_BYTES 

Source
pub const MINIMUM_PENDING_SURB_MAX_BYTES: u64 = 85_000_000;
Expand description

Floor on the byte budget of each Entry-side SURB map: 85 MB, about what the fixed 100 000-record cap of the pending map used, measured at roughly 840 B per record in the cache it was built on (hoprnet#8624).

The config validator rejects a budget below it, and the transport clamps to it, so a small value never shrinks the maps below what they held before the byte budget existed. The maps account a record by its own size, so this budget holds about 143 000 pending records, never fewer than the 100 000 it replaces.