import {eip4844} from "@lodestar/types"; import {EncodedPayloadBytes} from "@lodestar/reqresp"; import {IBeaconChain} from "../../../chain/index.js"; import {IBeaconDb} from "../../../db/index.js"; import {onBlocksOrBlobsSidecarsByRange} from "./beaconBlocksByRange.js"; // TODO EIP-4844: Unit test export function onBlobsSidecarsByRange( request: eip4844.BlobsSidecarsByRangeRequest, chain: IBeaconChain, db: IBeaconDb ): AsyncIterable { return onBlocksOrBlobsSidecarsByRange(request, chain, { finalized: db.blobsSidecarArchive, unfinalized: db.blobsSidecar, }); }