Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Mar 19, 2023
1 parent 0ce9dc4 commit 60f5c79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/beacon-node/src/api/impl/validator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export function getValidatorApi({

async getBlob(blockRoot, index) {
const blockRootHex = toHex(blockRoot);
const blob = (chain.producedBlobSidecarsCache.get(blockRootHex)?.blobSidecars ?? []).slice(index, index + 1)[0];
const blob = (chain.producedBlobSidecarsCache.get(blockRootHex)?.blobSidecars ?? [])[index];
if (blob === undefined) {
throw Error(`Blob not found for blockRoot=${blockRootHex} index=${index}`);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export async function beaconBlocksMaybeBlobsByRange(
}
}

// Assumes that the blobs are in the same sequence as blocks, doesn't require block to be sorted
// Assumes that the blobs are in the same sequence as blocks, doesn't require block to be sorted
export function matchBlockWithBlobs(
config: BeaconConfig,
allBlocks: allForks.SignedBeaconBlock[],
Expand Down

0 comments on commit 60f5c79

Please sign in to comment.