Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contracts-bedrock: add size limit on deposit transaction size #5527

Merged
merged 2 commits into from
Apr 26, 2023

Conversation

tynes
Copy link
Contributor

@tynes tynes commented Apr 24, 2023

Description

Adds a limit to prevent calldata larger than 120kb. Unsafe blocks contain the deposit transactions and when there is no upper bound on the calldata size, it is possible for a single transaction to cause the p2p gossip to consume far more bandwidth than necessary.

#5529 should be merged first because of the semver bumping

Tests

Includes test coverage of the new revert condition

Fixes CLI-3847

@tynes tynes requested a review from a team as a code owner April 24, 2023 16:53
@changeset-bot
Copy link

changeset-bot bot commented Apr 24, 2023

⚠️ No Changeset found

Latest commit: fb2adc4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@netlify
Copy link

netlify bot commented Apr 24, 2023

Deploy Preview for opstack-docs canceled.

Name Link
🔨 Latest commit 6fd89d1
🔍 Latest deploy log https://app.netlify.com/sites/opstack-docs/deploys/6446e31ae06b4d000835cb25

@tynes tynes requested review from clabby and refcell April 24, 2023 17:30
@mergify
Copy link
Contributor

mergify bot commented Apr 24, 2023

Hey @tynes! This PR has merge conflicts. Please fix them before continuing review.

@mergify mergify bot added the conflict label Apr 24, 2023
@mergify mergify bot removed the conflict label Apr 24, 2023
@mergify
Copy link
Contributor

mergify bot commented Apr 24, 2023

Hey @tynes! This PR has merge conflicts. Please fix them before continuing review.

@mergify mergify bot added the conflict label Apr 24, 2023
Copy link
Member

@clabby clabby left a comment

Choose a reason for hiding this comment

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

This is g2g after conflicts are resolved.

@mergify
Copy link
Contributor

mergify bot commented Apr 24, 2023

This PR has been added to the merge queue, and will be merged soon.

@mergify
Copy link
Contributor

mergify bot commented Apr 24, 2023

Hey @tynes, this pull request failed to merge and has been dequeued from the merge train. If you believe your PR failed in the merge train because of a flaky test, requeue it by commenting with @mergifyio requeue.
More details can be found on the Queue: Embarked in merge train check-run.

@mergify mergify bot removed the on-merge-train label Apr 24, 2023
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.

GTG

@tynes tynes changed the base branch from develop to fix/min-gaslimit-deposit April 25, 2023 20:35
@mergify
Copy link
Contributor

mergify bot commented Apr 25, 2023

Hey @tynes! This PR has merge conflicts. Please fix them before continuing review.

@mergify mergify bot added the conflict label Apr 25, 2023
Adds a limit to prevent calldata larger than 120kb. Unsafe
blocks contain the deposit transactions and when there is
no upper bound on the calldata size, it is possible for a
single transaction to cause the p2p gossip to consume
far more bandwidth than necessary.
@mergify mergify bot removed the conflict label Apr 26, 2023
@maurelian maurelian merged commit ad0b4d1 into fix/min-gaslimit-deposit Apr 26, 2023
@maurelian maurelian deleted the fix/max-deposit-data branch April 26, 2023 14:15
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.

4 participants