RAILGUN Reloaded
    Preparing search index...

    Per-batch progress event fired by sync/scan/decrypt. phase separates the two stages because they have very different throughput; UIs typically show them as two progress bars.

    type SyncProgress = {
        phase: SyncPhase;
        fromBlock: bigint;
        toBlock: bigint;
        currentBlock: bigint;
        blocksScanned: bigint;
        notesAdded: number;
        notesSpent: number;
        poi?: PoiRefreshProgressSummary;
        error?: Error;
    }
    Index
    phase: SyncPhase

    Stage that sent the event.

    fromBlock: bigint

    First block of the run, inclusive. Zero in the POI refresh phase.

    toBlock: bigint

    Last block of the run, inclusive. Zero in the POI refresh phase.

    currentBlock: bigint

    Last block of the batch just finished. Monotonic across a single run.

    blocksScanned: bigint

    Running total of blocks processed since the run began.

    notesAdded: number

    Running total of decrypted notes inserted (decrypt phase only).

    notesSpent: number

    Running total of owned notes marked spent (decrypt phase only).

    poi?: PoiRefreshProgressSummary

    Running total of POI status refresh results (POI refresh phase only).

    error?: Error

    Typed refresh error when a PPOI node request fails.