BoltDecorator

constructor(bolt: Bolt<Op>, format: BoltArchiveFormat<Id, V, Op>, removalWindow: Int = DEFAULT_REMOVAL_WINDOW, frontierWindow: Int = DEFAULT_FRONTIER_WINDOW)

Parameters

bolt

the archive to feed.

format

how operations are classified and encoded — the same value the bolt was built with. Classification is what separates content from records of forgetting, supplies the causal dot an insert is recognised by, and supplies the identity a repeated removal is recognised by.

removalWindow

how many removal identities to remember, evicted least-recently-offered first. Inserts do not consume it — they are suppressed from the frontier — so size it to the aggregate live tombstones you expect to be offered rather than to whole logs. 0 disables removal suppression, which is only ever right for an owner that never merges.

frontierWindow

how many contiguous runs of archived insert dots to remember: one per author while that author's dots arrive densely, one more for each hole that has not filled. It is not sized by operations — a peer's whole log is one run — so the default covers a fleet far larger than any removalWindow could.