Skip to content

Commit 90e8226

Browse files
committed
align max blob size
1 parent 32050c0 commit 90e8226

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

block/internal/da/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"time"
1010

1111
"github.com/celestiaorg/go-square/v3/share"
12+
"github.com/evstack/ev-node/block/internal/common"
1213
blobrpc "github.com/evstack/ev-node/pkg/da/jsonrpc"
1314
"github.com/rs/zerolog"
1415

@@ -86,7 +87,7 @@ func (c *client) Submit(ctx context.Context, data [][]byte, _ float64, namespace
8687

8788
blobs := make([]*blobrpc.Blob, len(data))
8889
for i, raw := range data {
89-
if uint64(len(raw)) > blobrpc.DefaultMaxBlobSize {
90+
if uint64(len(raw)) > common.DefaultMaxBlobSize {
9091
return datypes.ResultSubmit{
9192
BaseResult: datypes.BaseResult{
9293
Code: datypes.StatusTooBig,

pkg/da/jsonrpc/blob.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ type Commitment []byte
2424
// This mirrors celestia-node's blob.Proof shape.
2525
type Proof []*nmt.Proof
2626

27-
// DefaultMaxBlobSize is the default maximum blob size used by celestia-app (32 MiB).
28-
const DefaultMaxBlobSize = 32 * 1_048_576 // bytes
29-
3027
// subtreeRootThreshold is copied from celestia-app/v6 appconsts.SubtreeRootThreshold.
3128
// It controls the branching factor when generating commitments.
3229
const subtreeRootThreshold = 64

0 commit comments

Comments
 (0)