From 106e1bb7f9c5400b7c22e8dc0efded026803a111 Mon Sep 17 00:00:00 2001 From: Sergi Rene Date: Wed, 18 Sep 2024 10:48:28 +0200 Subject: [PATCH] add maxblobbytes for grpc --- da/grpc/grpc.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/da/grpc/grpc.go b/da/grpc/grpc.go index 8a3dfc9d0..aff1d2819 100644 --- a/da/grpc/grpc.go +++ b/da/grpc/grpc.go @@ -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 @@ -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.