Skip to content

feat: bss plaintext tx size enforcement#2332

Merged
mslipper merged 5 commits intoethereum-optimism:developfrom
cfromknecht:bss-plaintext-tx-size-enforcement
Mar 18, 2022
Merged

feat: bss plaintext tx size enforcement#2332
mslipper merged 5 commits intoethereum-optimism:developfrom
cfromknecht:bss-plaintext-tx-size-enforcement

Conversation

@cfromknecht
Copy link
Copy Markdown
Contributor

Description
This PR modifies the BSS to enforce the configured MinTxSize and MaxTxSize on the plaintext encoding of calldata, regardless of which encoding scheme is used. Previously the only initial, conservative pass was performed against the plaintext size, after which (when using zlib) the min and max would be applied to the compressed calldata size. To ensure these are applied consistently, we now abort/prune based on the plaintext size before performing the final encoding. This protects against the edge case where the initial pass includes a maximum plaintext-sized batch, but the compressed size ends up being under the minimum.

Metadata

  • Fixes ENG-2065

@cfromknecht cfromknecht requested a review from tynes as a code owner March 16, 2022 17:20
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 16, 2022

🦋 Changeset detected

Latest commit: 727b058

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@eth-optimism/batch-submitter-service Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cfromknecht cfromknecht force-pushed the bss-plaintext-tx-size-enforcement branch from b34944b to 95367f2 Compare March 17, 2022 17:58
@cfromknecht cfromknecht force-pushed the bss-plaintext-tx-size-enforcement branch from 95367f2 to 727b058 Compare March 17, 2022 18:05
@mslipper mslipper merged commit ff68104 into ethereum-optimism:develop Mar 18, 2022
@cfromknecht cfromknecht deleted the bss-plaintext-tx-size-enforcement branch March 18, 2022 16:17
theochap pushed a commit that referenced this pull request Dec 10, 2025
This PR refactors the node's reset handling module. This is required for
handling reset due to failure while processing derivation update.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants