Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

fix(derive): SpanBatch element limit + channel RLP size limit#692

Merged
clabby merged 3 commits intomainfrom
cl/span-batch-fix
Oct 15, 2024
Merged

fix(derive): SpanBatch element limit + channel RLP size limit#692
clabby merged 3 commits intomainfrom
cl/span-batch-fix

Conversation

@clabby
Copy link
Contributor

@clabby clabby commented Oct 14, 2024

Overview

The enforcements on span batch size for Fjord was implemented incorrectly. There is a separate protocol constant, MaxSpanBatchElements, in the reference implementation that limits span batch element size. This is strictly different than the channel size limitation.

We also did not enforce maximum channel RLP size within the BatchReader for zlib. This has been fixed.

@clabby clabby self-assigned this Oct 14, 2024
@clabby clabby added A-proof Area: proof crates K-fix Kind: fix K-bug Kind: bug labels Oct 14, 2024
@clabby clabby force-pushed the cl/span-batch-fix branch 3 times, most recently from 94daf0f to 0815d0f Compare October 14, 2024 21:08
@clabby clabby force-pushed the cl/span-batch-fix branch from 0815d0f to 7b60fd9 Compare October 14, 2024 21:08
@clabby clabby marked this pull request as ready for review October 14, 2024 21:09
@clabby clabby requested a review from refcell as a code owner October 14, 2024 21:09
@codecov
Copy link

codecov bot commented Oct 14, 2024

Codecov Report

Attention: Patch coverage is 93.16239% with 8 lines in your changes missing coverage. Please review.

Project coverage is 94.0%. Comparing base (1877b60) to head (97c55d0).
Report is 2 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
crates/derive/src/stages/channel_reader.rs 89.4% 4 Missing ⚠️
crates/derive/src/batch/span_batch/transactions.rs 92.3% 2 Missing ⚠️
crates/derive/src/batch/mod.rs 0.0% 1 Missing ⚠️
crates/derive/src/batch/span_batch/payload.rs 97.0% 1 Missing ⚠️
Additional details and impacted files

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@refcell refcell left a comment

Choose a reason for hiding this comment

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

Generally happy with this as it removes a bunch of hardfork-specific logic. Really think this demonstrates the need to upstream logic into op-alloy

@clabby clabby added this pull request to the merge queue Oct 15, 2024
Merged via the queue into main with commit 4e7f4d1 Oct 15, 2024
@github-actions github-actions bot mentioned this pull request Oct 15, 2024
refcell pushed a commit that referenced this pull request Oct 18, 2024
* fix(derive): SpanBatch element limit + channel RLP size limit

* remove unused fn

* channel reader fjord test
@github-actions github-actions bot mentioned this pull request Oct 19, 2024
theochap pushed a commit to ethereum-optimism/optimism that referenced this pull request Dec 10, 2025
…kona#692)

* fix(derive): SpanBatch element limit + channel RLP size limit

* remove unused fn

* channel reader fjord test
theochap pushed a commit to ethereum-optimism/optimism that referenced this pull request Jan 14, 2026
…kona#692)

* fix(derive): SpanBatch element limit + channel RLP size limit

* remove unused fn

* channel reader fjord test
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A-proof Area: proof crates K-bug Kind: bug K-fix Kind: fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants