Skip to content

Conversation

@ben-chain
Copy link
Collaborator

Description

This PR covers YAS 430, which adds a gas rate limiter to the Safety and L1->L2 queues. It accomplishes this by requiring that you burn a proportional amount of gas on L1 based on the transaction's OVM gasLimit.

NOTE: This PR builds off #212 , so I have made the PR against that branch--diff will be much more readable this way as merging #212 is currently blocked.

Questions

  • Does it make more sense to charge/burn ETH instead of gas?

Metadata

Fixes

  • Fixes YAS 430

Contributing Agreement

Copy link

@willmeister willmeister left a comment

Choose a reason for hiding this comment

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

LGTM 👍

return keccak256(abi.encodePacked(
_batchHeader.timestamp,
_batchHeader.isL1ToL2Tx,
_batchHeader.isL1ToL2Tx, // TODO REPLACE WITH QUEUE ORIGIN (if you are a PR reviewer please lmk!)

Choose a reason for hiding this comment

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

☝️

// TODO: figure out how we're going to authenticate this
return true;
// return _sender != tx.origin;
require(msg.sender == address(resolveCanonicalTransactionChain()), "Only the canonical transaction chain can dequeue L1->L2 queue transactions.");

Choose a reason for hiding this comment

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

👍

@ben-chain ben-chain changed the base branch from feat/YAS422/enforce-SM-gas-determinism to master August 25, 2020 01:44
@ben-chain ben-chain merged commit 4366558 into master Aug 25, 2020
@ben-chain ben-chain mentioned this pull request Aug 25, 2020
1 task
@ben-chain
Copy link
Collaborator Author

For future reference, discussion on the StateManagerGasSanitizer this PR can be found in #212 , which was closed in favor of this branch (built on top).

@gakonst gakonst deleted the feat/YAS430/gas-limit-burn branch March 18, 2021 15:02
shenkeyao referenced this pull request in EspressoSystems/optimism-espresso-integration Mar 1, 2025
* migration: Add tests for state migration

* migration: Fix issues shown by tests

* migration: pass allowlist into state migration

Allows for easier testing

* migration: Add test with allowlist

* Correct overwrite counter

* Use in memory DB
QuentinI referenced this pull request in EspressoSystems/optimism-espresso-integration Mar 7, 2025
* migration: Add tests for state migration

* migration: Fix issues shown by tests

* migration: pass allowlist into state migration

Allows for easier testing

* migration: Add test with allowlist

* Correct overwrite counter

* Use in memory DB
agusduha pushed a commit that referenced this pull request Mar 20, 2025
* feat: make L1ERC721Bridge configurable in L1Block

* feat: remove initializable from ERC721Bridge & L2ERC721Bridge

* chore: update L2Genesis script

* feat: update L1ERC721Bridge to make it initializable

* chore: update Setup

* chore: pre-pr ready

* test: move common assertions out of conditional
theochap pushed a commit that referenced this pull request Dec 10, 2025
* fix: pipeline builder

* feat: pipeline builder

* fix: use online provider impls

* fix: feature flag builder example
Zena-park added a commit to tokamak-network/optimism that referenced this pull request Dec 30, 2025
theochap pushed a commit that referenced this pull request Jan 15, 2026
related issues  paradigmxyz/reth#12275
<!--
Thank you for your Pull Request. Please provide a description above and
review
the requirements below.

Bug fixes and new features should include tests.

Contributors guide:
https://github.com/alloy-rs/core/blob/main/CONTRIBUTING.md

The contributors guide includes instructions for running rustfmt and
building the
documentation.
-->

<!-- ** Please select "Allow edits from maintainers" in the PR Options
** -->

## Motivation

<!--
Explain the context and why you're making that change. What is the
problem
you're trying to solve? In some cases there is not a problem and this
can be
thought of as being the motivation for your change.
-->

## Solution

<!--
Summarize the solution and provide any necessary context needed to
understand
the code change.
-->

## PR Checklist

- [ ] Added Tests
- [ ] Added Documentation
- [ ] Breaking changes

---------

Co-authored-by: Matthias Seitz <[email protected]>
emhane pushed a commit that referenced this pull request Feb 3, 2026
Closes #217 

Also fixed a bug where the `set_earliest_block_number_hash` was using
`append` instead of `upsert`.

---------

Co-authored-by: Arun Dhyani <[email protected]>
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