Keeps track of blocks within stability window (computed as numSlots=3k/f, or k blocks).

With current mainnet protocol parameters (Dec 2022), it can be up to 2160 ("securityParam"/"k") blocks, which can be up to ~195 megabytes in raw serialized block data.

Implementations should have a strategy for deleting blocks outside of the stability window. Implementations are not expected to keep exactly the required # of blocks (having more blocks is ok).

Hierarchy

  • InMemoryStabilityWindowBuffer

Implements

Constructors

Properties

Methods

Constructors

Properties

#blocks: Block[] = []
tip$: BehaviorSubject<TipOrOrigin> = ...

Methods

Generated using TypeDoc