Skip to main content

memory_clear_step

Function memory_clear_step 

Source
pub fn memory_clear_step(streak: u32, evidence: bool) -> (u32, bool)
Expand description

Pure congestion-memory step: fold one window’s evidence (clean at-or-above last_bad) into the running streak. Returns the new streak and whether the memory clears on this window. Any window without that evidence — a breach, a dead-band hold, or a clean window still below the congestion point — resets the streak.