Skip to main content

REPLAY_CAPACITY

Constant REPLAY_CAPACITY 

Source
pub const REPLAY_CAPACITY: usize = 100_000;
Expand description

How many spent keys one window holds at once.

An entry costs an authenticated request inside one window, so filling this takes that many of them. Sized well past what honest load reaches. Past it a proof is refused rather than admitted without a replay check, and rather than evicting an entry that still names a live proof: either of those turns a full cache into a way to get a replay accepted.