Skip to content

Commit

Permalink
tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed Nov 20, 2023
1 parent 16b01f1 commit fa2b051
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/repo/src/sync/consumer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ export const verifyRepo = async (
head: CID,
did?: string,
signingKey?: string,
opts?: { ensureLeaves?: boolean },
): Promise<VerifiedRepo> => {
const diff = await verifyDiff(null, blocks, head, did, signingKey)
const diff = await verifyDiff(null, blocks, head, did, signingKey, opts)
const creates = util.ensureCreates(diff.writes)
return {
creates,
Expand All @@ -37,9 +38,10 @@ export const verifyDiffCar = async (
carBytes: Uint8Array,
did?: string,
signingKey?: string,
opts?: { ensureLeaves?: boolean },
): Promise<VerifiedDiff> => {
const car = await util.readCarWithRoot(carBytes)
return verifyDiff(repo, car.blocks, car.root, did, signingKey)
return verifyDiff(repo, car.blocks, car.root, did, signingKey, opts)
}

export const verifyDiff = async (
Expand Down

0 comments on commit fa2b051

Please sign in to comment.