Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 0 additions & 91 deletions .github/workflows/check_consts_drift.yml

This file was deleted.

2 changes: 1 addition & 1 deletion block/internal/submitting/da_submitter.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const (
initialBackoff = 100 * time.Millisecond
defaultGasPrice = 0.0
defaultGasMultiplier = 1.0
defaultMaxBlobSize = 2 * 1024 * 1024 // 2MB fallback blob size limit
defaultMaxBlobSize = 1.5 * 1024 * 1024 // 1.5MB fallback blob size limit
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we merge this, we need to decrease it here too: https://github.com/evstack/ev-node/blob/main/da/jsonrpc/internal/consts.go#L20

defaultMaxGasPriceClamp = 1000.0
defaultMaxGasMultiplierClamp = 3.0 // must always > 0 to avoid division by zero
)
Expand Down
8 changes: 6 additions & 2 deletions da/jsonrpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ import (
"github.com/rs/zerolog"

"github.com/evstack/ev-node/core/da"
internal "github.com/evstack/ev-node/da/jsonrpc/internal"
)

const (
// DefaultMaxBlobSize is the default maximum blob size in bytes.
DefaultMaxBlobSize = 1.5 * 1024 * 1024 // 1.5MB
)

//go:generate mockgen -destination=mocks/api.go -package=mocks . Module
Expand Down Expand Up @@ -232,7 +236,7 @@ func newClient(ctx context.Context, logger zerolog.Logger, addr string, authHead
var multiCloser multiClientCloser
var client Client
client.DA.Logger = logger
client.DA.MaxBlobSize = uint64(internal.MaxTxSize)
client.DA.MaxBlobSize = uint64(DefaultMaxBlobSize)
client.DA.gasPrice = gasPrice
client.DA.gasMultiplier = gasMultiplier

Expand Down
41 changes: 0 additions & 41 deletions da/jsonrpc/internal/consts.go

This file was deleted.

Loading