Skip to content

Commit 5bb20d5

Browse files
committed
Merge remote-tracking branch 'origin/main' into marko/key_rotation
# Conflicts: # execution/evm/go.sum
2 parents 5fa2b17 + 89c7fe8 commit 5bb20d5

19 files changed

Lines changed: 85 additions & 31 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
## [Unreleased]
1111

12+
## v1.1.2
13+
1214
### Changes
1315

1416
- Add max bytes contraints in simple solo sequnecer [#3312](https://github.com/evstack/ev-node/pull/3312)
@@ -21,6 +23,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2123
- Optimize metadata writes by making it async in cache store [#3298](https://github.com/evstack/ev-node/pull/3298)
2224
- Reduce tx cache retention to avoid OOM under (really) heavy tx load [#3299](https://github.com/evstack/ev-node/pull/3299)
2325

26+
### Fixed
27+
28+
- Increase P2P pubsub max message size to match `DefaultMaxBlobSize`, preventing fullnode desync on large blocks [#3344](https://github.com/evstack/ev-node/pull/3344).
29+
2430
## v1.1.1
2531

2632
### Changes

apps/evm/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ replace (
1010

1111
require (
1212
github.com/ethereum/go-ethereum v1.17.3
13-
github.com/evstack/ev-node v1.1.1
13+
github.com/evstack/ev-node v1.1.2
1414
github.com/evstack/ev-node/core v1.0.0
1515
github.com/evstack/ev-node/execution/evm v1.0.1
1616
github.com/ipfs/go-datastore v0.9.1

apps/grpc/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ replace (
99
)
1010

1111
require (
12-
github.com/evstack/ev-node v1.1.1
12+
github.com/evstack/ev-node v1.1.2
1313
github.com/evstack/ev-node/core v1.0.0
14-
github.com/evstack/ev-node/execution/grpc v1.0.0-rc.1
14+
github.com/evstack/ev-node/execution/grpc v1.0.0
1515
github.com/ipfs/go-datastore v0.9.1
1616
github.com/rs/zerolog v1.35.1
1717
github.com/spf13/cobra v1.10.2

apps/testapp/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ COPY . .
3030
WORKDIR /ev-node/apps/testapp
3131

3232
# 125829120 = 120 MB
33-
RUN go build -ldflags "-X github.com/evstack/ev-node/block/internal/common.defaultMaxBlobSizeStr=125829120" -o /go/bin/testapp .
33+
RUN go build -ldflags "-X github.com/evstack/ev-node/pkg/blobsize.defaultMaxBlobSizeStr=125829120" -o /go/bin/testapp .
3434

3535
## prep the final image.
3636
#

apps/testapp/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ replace (
88
)
99

1010
require (
11-
github.com/evstack/ev-node v1.1.1
11+
github.com/evstack/ev-node v1.1.2
1212
github.com/evstack/ev-node/core v1.0.0
1313
github.com/ipfs/go-datastore v0.9.1
1414
github.com/rs/zerolog v1.35.1

block/internal/da/client.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/celestiaorg/go-square/v3/share"
1313
"github.com/rs/zerolog"
1414

15-
"github.com/evstack/ev-node/block/internal/common"
15+
"github.com/evstack/ev-node/pkg/blobsize"
1616
blobrpc "github.com/evstack/ev-node/pkg/da/jsonrpc"
1717
datypes "github.com/evstack/ev-node/pkg/da/types"
1818
)
@@ -161,7 +161,7 @@ func (c *client) Submit(ctx context.Context, data [][]byte, _ float64, namespace
161161

162162
blobs := make([]*blobrpc.Blob, len(data))
163163
for i, raw := range data {
164-
if uint64(len(raw)) > common.DefaultMaxBlobSize {
164+
if uint64(len(raw)) > blobsize.DefaultMaxBlobSize {
165165
return datypes.ResultSubmit{
166166
BaseResult: datypes.BaseResult{
167167
Code: datypes.StatusTooBig,
@@ -559,7 +559,7 @@ func extractBlobData(resp *blobrpc.SubscriptionResponse) [][]byte {
559559
continue
560560
}
561561
data := blob.Data()
562-
if len(data) == 0 || uint64(len(data)) > common.DefaultMaxBlobSize {
562+
if len(data) == 0 || uint64(len(data)) > blobsize.DefaultMaxBlobSize {
563563
continue
564564
}
565565
blobs = append(blobs, data)

block/internal/executing/executor.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
"github.com/evstack/ev-node/block/internal/common"
2020
coreexecutor "github.com/evstack/ev-node/core/execution"
2121
coresequencer "github.com/evstack/ev-node/core/sequencer"
22+
"github.com/evstack/ev-node/pkg/blobsize"
2223
"github.com/evstack/ev-node/pkg/config"
2324
"github.com/evstack/ev-node/pkg/genesis"
2425
"github.com/evstack/ev-node/pkg/raft"
@@ -681,7 +682,7 @@ func (e *Executor) ProduceBlock(ctx context.Context) error {
681682
func (e *Executor) RetrieveBatch(ctx context.Context) (*BatchData, error) {
682683
req := coresequencer.GetNextBatchRequest{
683684
Id: []byte(e.genesis.ChainID),
684-
MaxBytes: common.DefaultMaxBlobSize,
685+
MaxBytes: blobsize.DefaultMaxBlobSize,
685686
LastBatchData: [][]byte{}, // Can be populated if needed for sequencer context
686687
}
687688

block/internal/submitting/batching_strategy_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ import (
77
"github.com/stretchr/testify/assert"
88
"github.com/stretchr/testify/require"
99

10-
"github.com/evstack/ev-node/block/internal/common"
10+
"github.com/evstack/ev-node/pkg/blobsize"
1111
"github.com/evstack/ev-node/pkg/config"
1212
)
1313

1414
func TestImmediateStrategy(t *testing.T) {
1515
strategy := &ImmediateStrategy{}
16-
maxBlobSize := common.DefaultMaxBlobSize
16+
maxBlobSize := blobsize.DefaultMaxBlobSize
1717

1818
tests := []struct {
1919
name string
@@ -50,7 +50,7 @@ func TestImmediateStrategy(t *testing.T) {
5050
}
5151

5252
func TestSizeBasedStrategy(t *testing.T) {
53-
maxBlobSize := common.DefaultMaxBlobSize
53+
maxBlobSize := blobsize.DefaultMaxBlobSize
5454

5555
tests := []struct {
5656
name string
@@ -120,7 +120,7 @@ func TestSizeBasedStrategy(t *testing.T) {
120120

121121
func TestTimeBasedStrategy(t *testing.T) {
122122
maxDelay := 6 * time.Second
123-
maxBlobSize := common.DefaultMaxBlobSize
123+
maxBlobSize := blobsize.DefaultMaxBlobSize
124124

125125
tests := []struct {
126126
name string
@@ -174,7 +174,7 @@ func TestTimeBasedStrategy(t *testing.T) {
174174
}
175175

176176
func TestAdaptiveStrategy(t *testing.T) {
177-
maxBlobSize := common.DefaultMaxBlobSize
177+
maxBlobSize := blobsize.DefaultMaxBlobSize
178178
sizeThreshold := 0.8
179179
maxDelay := 6 * time.Second
180180

@@ -306,7 +306,7 @@ func TestNewBatchingStrategy(t *testing.T) {
306306
}
307307

308308
func TestBatchingStrategiesComparison(t *testing.T) {
309-
maxBlobSize := common.DefaultMaxBlobSize
309+
maxBlobSize := blobsize.DefaultMaxBlobSize
310310
pendingCount := uint64(10)
311311
totalSize := maxBlobSize / 2
312312
timeSinceLastSubmit := 3 * time.Second

block/internal/submitting/da_submitter.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616
"github.com/evstack/ev-node/block/internal/cache"
1717
"github.com/evstack/ev-node/block/internal/common"
1818
"github.com/evstack/ev-node/block/internal/da"
19+
"github.com/evstack/ev-node/pkg/blobsize"
1920
"github.com/evstack/ev-node/pkg/config"
2021
pkgda "github.com/evstack/ev-node/pkg/da"
2122
datypes "github.com/evstack/ev-node/pkg/da/types"
@@ -50,7 +51,7 @@ func defaultRetryPolicy(maxAttempts int, maxDuration time.Duration) retryPolicy
5051
MaxAttempts: maxAttempts,
5152
MinBackoff: initialBackoff,
5253
MaxBackoff: maxDuration,
53-
MaxBlobBytes: common.DefaultMaxBlobSize,
54+
MaxBlobBytes: blobsize.DefaultMaxBlobSize,
5455
}
5556
}
5657

block/internal/submitting/submitter.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616
"github.com/evstack/ev-node/block/internal/common"
1717
coreexecutor "github.com/evstack/ev-node/core/execution"
1818
coresequencer "github.com/evstack/ev-node/core/sequencer"
19+
"github.com/evstack/ev-node/pkg/blobsize"
1920
"github.com/evstack/ev-node/pkg/config"
2021
"github.com/evstack/ev-node/pkg/genesis"
2122
"github.com/evstack/ev-node/pkg/signer"
@@ -219,7 +220,7 @@ func (s *Submitter) daSubmissionLoop() {
219220
shouldSubmit := s.batchingStrategy.ShouldSubmit(
220221
uint64(len(headers)),
221222
totalSize,
222-
common.DefaultMaxBlobSize,
223+
blobsize.DefaultMaxBlobSize,
223224
timeSinceLastSubmit,
224225
)
225226

@@ -279,7 +280,7 @@ func (s *Submitter) daSubmissionLoop() {
279280
shouldSubmit := s.batchingStrategy.ShouldSubmit(
280281
uint64(len(signedDataList)),
281282
totalSize,
282-
common.DefaultMaxBlobSize,
283+
blobsize.DefaultMaxBlobSize,
283284
timeSinceLastSubmit,
284285
)
285286

0 commit comments

Comments
 (0)