Skip to content

Commit

Permalink
feat: check for no commitments on block or column in sidecar validation
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewkeil committed Oct 21, 2024
1 parent fccf9a2 commit 4e676c7
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ export function validateDataColumnsSidecars(
if (
columnBlockHeader.slot !== blockSlot ||
!byteArrayEquals(columnBlockRoot, blockRoot) ||
kzgCommitments.length === 0 ||
blockKzgCommitments.length === 0 ||
blockKzgCommitments.length !== kzgCommitments.length ||
blockKzgCommitments
.map((commitment, i) => byteArrayEquals(commitment, kzgCommitments[i]))
Expand Down

0 comments on commit 4e676c7

Please sign in to comment.