This commit is contained in:
gmega 2024-01-29 16:59:38 -03:00
parent 979a7f37c8
commit 1f2ede3120
No known key found for this signature in database
GPG Key ID: FFD8DAF00660270F
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ proc createProofSample(self: DataSampler, slotTreeCid: Cid, cellIdx: Natural): F
# This converts our slotBlockIndex to a datasetBlockIndex using the
# indexing-strategy used by the builder.
# We need this to fetch the block data. We can't do it by slotTree + slotBlkIdx.
let datasetBlockIndex = self.builder.slotIndicies(self.index)[slotBlkIdx]
let datasetBlockIndex = self.builder.slotIndices(self.index)[slotBlkIdx]
without (bytes, blkTree) =? await self.builder.buildBlockTree(datasetBlockIndex), err:
error "Failed to build block tree", err = err.msg