Skip to content

Documentation / @etherfold/processor-entities / BootstrapOutcome

Type Alias: BootstrapOutcome ​

BootstrapOutcome = { at: number; from: string; status: "bootstrapped"; } | { at: number; status: "kept-local"; } | { reason: NotBootstrappedReason; status: "not-bootstrapped"; }

Defined in: packages/processor-entities/src/snapshot.ts:162

Union Members ​

Type Literal ​

{ at: number; from: string; status: "bootstrapped"; }

The snapshot and its cursor were installed; the store's state is as of at (the snapshot's takenAt).


Type Literal ​

{ at: number; status: "kept-local"; }

Nothing was installed because the local store had already got further.

The free-form path's "prefer local" rule, and it matters more here: a snapshot BEHIND the local state would be a downgrade AND would drag the store's honest history floor up to the snapshot's block for no gain.


Type Literal ​

{ reason: NotBootstrappedReason; status: "not-bootstrapped"; }