Skip to content

Commit

Permalink
Update the maximum acceptable block size
Browse files Browse the repository at this point in the history
  • Loading branch information
csdtowards committed Oct 9, 2024
1 parent b3b4a03 commit 6de0fa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion disperser/apiserver/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (s *DispersalServer) DisperseBlob(ctx context.Context, req *pb.DisperseBlob

blobSize := len(req.GetData())
// The blob size in bytes must be in range [1, maxBlobSize].
if blobSize > core.MaxBlobSize {
if blobSize > core.MaxBlobSize-4 {
return nil, fmt.Errorf("blob size cannot exceed %v KiB", core.MaxBlobSize/1024)
}
if blobSize == 0 {
Expand Down

0 comments on commit 6de0fa4

Please sign in to comment.