@serfab/quereus-plugin-sereus 0.8.1 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/types.ts CHANGED
@@ -19,6 +19,15 @@ export interface StrandConnectionOptions {
19
19
  enableCache?: boolean;
20
20
  /** FRET profile (default: 'edge') */
21
21
  fretProfile?: 'edge' | 'core';
22
+ /**
23
+ * Number of nodes Optimystic is told this strand's replication cluster should
24
+ * have. Ignored when {@link libp2pNode} is injected (the injected node was
25
+ * built with its own value). Every peer on the strand should use the same
26
+ * number — see `resolveStrandClusterSize`. Defaults to
27
+ * `DEFAULT_STRAND_CLUSTER_SIZE` (4 — the smallest breadth whose 0.75
28
+ * super-majority still commits with one holder offline).
29
+ */
30
+ clusterSize?: number;
22
31
  /** Inject an existing libp2p node instead of creating one */
23
32
  libp2pNode?: Libp2p;
24
33
  /** Required when libp2pNode is provided */