Skip to main content

DEFAULT_REPLAY_FRAMES

Constant DEFAULT_REPLAY_FRAMES 

Source
pub const DEFAULT_REPLAY_FRAMES: usize = 4096;
Expand description

How many frames the replay buffer holds, if a deployment does not choose.

Most frames are a few kilobytes — the commit block, the tree nodes on one path and one record — so at this many the frame bound is the one reached first, and it is a consumer’s reconnect window. Each frame held costs a few dozen bytes beyond its encoding, which is what this bound limits when frames are small. See [capacity] firehose_replay_frames.