Skip to content

fix: remove max_gas_per_txn check in syncer path - #579

Merged
akundaz merged 1 commit into
mainfrom
ash-zxmvrrptsvoo
Sep 24, 2026
Merged

akundaz merged 1 commit into
mainfrom
ash-zxmvrrptsvoo

Conversation

@akundaz

@akundaz akundaz commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Deposits should be force-included from L1 and not subject to per-transaction gas limits. This was only being followed in the building path, not the syncer.

@akundaz akundaz self-assigned this Sep 23, 2026
Copilot AI lite review requested due to automatic review settings September 23, 2026 13:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Add a syncer-path regression test covering over-limit deposits and non-deposit transactions.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Updates flashblock syncer execution so L1 deposits bypass max_gas_per_txn, while regular transactions remain limited.

Changes:

  • Exempts deposits from the per-transaction gas check in the syncer path.
File Description
crates/​op-rbuilder/​src/​builder/​payload_handler.rs Applies the deposit gas-limit exemption during syncer execution.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread crates/op-rbuilder/src/builder/payload_handler.rs Outdated
Comment on lines 374 to 381

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change

I'd just remove this entire check, the flag is a builder flag only. The verifier path shouldn't enforce a gas per tx limit if the tx is otherwise valid.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fair enough, removed the check

Copilot AI review requested due to automatic review settings September 23, 2026 20:09
@akundaz akundaz changed the title fix: apply max_gas_per_txn to deposits in syncer path fix: remove max_gas_per_txn check in syncer path Sep 23, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

No unresolved review issues were identified.

Review effort: Lite
Findings: None

Resolved since last review (1)

@akundaz
akundaz merged commit 4f1bec3 into main Sep 24, 2026
5 checks passed
@akundaz
akundaz deleted the ash-zxmvrrptsvoo branch September 24, 2026 10:53
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