Skip to content

Commit

Permalink
add maxblobbytes for grpc
Browse files Browse the repository at this point in the history
  • Loading branch information
srene committed Sep 18, 2024
1 parent d51b961 commit 106e1bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion da/grpc/grpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import (
"github.com/tendermint/tendermint/libs/pubsub"
)

const maxBlobSize = 2097152 // 2MB (equivalent to avail or celestia)

// DataAvailabilityLayerClient is a generic client that proxies all DA requests via gRPC.
type DataAvailabilityLayerClient struct {
config Config
Expand Down Expand Up @@ -121,7 +123,7 @@ func (d *DataAvailabilityLayerClient) CheckBatchAvailability(daMetaData *da.DASu

// GetMaxBlobSizeBytes returns the maximum allowed blob size in the DA, used to check the max batch size configured
func (d *DataAvailabilityLayerClient) GetMaxBlobSizeBytes() uint32 {
return 0
return maxBlobSize
}

// RetrieveBatches proxies RetrieveBlocks request to gRPC server.
Expand Down

0 comments on commit 106e1bb

Please sign in to comment.