Skip to main content

MAX_SKIPPED_KEYS

Constant MAX_SKIPPED_KEYS 

Source
pub const MAX_SKIPPED_KEYS: usize = 2000;
Expand description

The total number of out-of-order message keys this ratchet will hold onto at once, across every chain it has ever had. Beyond this, the oldest key is evicted to make room, so a peer cannot exhaust memory by never sending the messages a lower counter promised.