Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
colinlyguo committed Apr 29, 2024
1 parent ebfc226 commit 1f1b279
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions encoding/codecv1/codecv1.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,9 +388,9 @@ func constructBlobPayload(chunks []*encoding.Chunk, useCompression bool) (*kzg48

// makeBlobCanonical converts the raw blob data into the canonical blob representation of 4096 BLSFieldElements.
func makeBlobCanonical(blobBytes []byte) (*kzg4844.Blob, error) {
// blob contains 131072 bytes but we can only utilize 31/32 of these
// blob contains 131072 bytes but we can only utilize 31/32 of these, which is 126976 bytes.
if len(blobBytes) > 124*1024 {
return nil, fmt.Errorf("oversized batch payload, blob bytes length: %v", len(blobBytes))
return nil, fmt.Errorf("oversized batch payload, blob bytes length: %v, max length: %v", len(blobBytes), 124*1024)
}

// the canonical (padded) blob payload
Expand Down

0 comments on commit 1f1b279

Please sign in to comment.