RAILGUN Reloaded
    Preparing search index...

    Type Alias AtomicSnapshotBootstrapResult

    AtomicSnapshotBootstrapResult:
        | {
            status: "promoted";
            blockHeight: bigint;
            trees: SnapshotTreeState[];
        }
        | {
            status: "skipped";
            reason: "trusted-state-exists";
            blockHeight: bigint;
        }

    Result of bootstrapSnapshotAtomically.

    Type Declaration

    • { status: "promoted"; blockHeight: bigint; trees: SnapshotTreeState[] }
      • status: "promoted"

        The snapshot database replaced the trusted chain.db.

      • blockHeight: bigint

        Last block of the snapshot.

      • trees: SnapshotTreeState[]

        Checked state of each tree, from tree 0 to the latest tree.

    • { status: "skipped"; reason: "trusted-state-exists"; blockHeight: bigint }
      • status: "skipped"

        The bootstrap did not run and changed nothing.

      • reason: "trusted-state-exists"

        The trusted chain.db already has sync state.

      • blockHeight: bigint

        Last synced block of the existing trusted state.