Typeberry by Fluffy Labs - v0.9.0
    Preparing search index...

    Interface ValueRefsReader

    Synchronous, read-only view of the persisted refcounting state.

    Both LMDB and fjall offer synchronous reads, so reads can go straight to the backing store. All writes go through ValueRefsUpdate batches instead, since persistent backends can only write asynchronously (LMDB transactions, fjall inserts + persist).

    interface ValueRefsReader {
        getDelta(
            header: OpaqueHash & WithOpaque<"HeaderHash">,
        ): ValueDelta | undefined;
        getFinalizedCount(hash: OpaqueHash & WithOpaque<"trieValue">): number;
        getPendingCount(hash: OpaqueHash & WithOpaque<"trieValue">): number;
    }

    Implemented by

    Index

    Methods