tarlatan
    Preparing search index...

    Interface LedgerReader

    The ledger opened only to read.

    interface LedgerReader {
        read: Effect<
            LedgerSnapshot,
            LedgerError
            | LedgerBusy
            | StoreVersionNewer,
        >;
        snapshot: Effect<VersionedRead<LedgerSnapshot>, LedgerError | LedgerBusy>;
        version: number;
    }
    Index

    Every stored row, read as LedgerReader.snapshot reads them. A newer ledger fails with StoreVersionNewer and one below 0 with LedgerError (owner ruling P2), and no row is read.

    The ledger's version and, when Domain's decision on it allows, every stored row, both read in one deferred transaction (review finding F6). A refusing version (newer, or below 0) is given as a value, and no row is read.

    version: number

    The ledger's format version as its header read at the open, decoded as an integer: 0 for a ledger v0.1.0 wrote and no writer has stamped since, 1 for the format this release knows (knownLedgerVersion). The reader stamps nothing. Each read decides on the version its own snapshot reads, which another connection may have changed since the open.