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

fix(executor): Holocene EIP-1559 params in Header#622

Merged
clabby merged 6 commits intomainfrom
cl/bf-params-fix
Oct 4, 2024
Merged

fix(executor): Holocene EIP-1559 params in Header#622
clabby merged 6 commits intomainfrom
cl/bf-params-fix

Conversation

@clabby
Copy link
Contributor

@clabby clabby commented Oct 4, 2024

Overview

Fixes the inclusion of the current block's base fee parameters within the Header. As-is, it always includes the payload attributes' EIP-1559 parameters in the header, but this is not the desired result.

Instead, we should be including the EIP-1559 parameters that were selected for the block. That is, if the parent header's nonce field is B64::ZERO, we should be including the canyon base fee parameters in the Header, not what was sent through the PayloadAttributes.

In addition, the attributes builder must send a zero'd out EIP1559params in the payload if the SystemConfig does not yet have a view of the EIP-1559 params.

@clabby clabby added K-fix Kind: fix A-protocol Area: protocol crates labels Oct 4, 2024
@clabby clabby self-assigned this Oct 4, 2024
@clabby clabby requested a review from refcell October 4, 2024 18:11
@clabby clabby marked this pull request as draft October 4, 2024 18:12
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.

Good catch!

@codecov
Copy link

codecov bot commented Oct 4, 2024

Codecov Report

Attention: Patch coverage is 80.61224% with 19 lines in your changes missing coverage. Please review.

Project coverage is 81.6%. Comparing base (a9dd0e7) to head (bfd466b).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
crates/executor/src/lib.rs 53.6% 19 Missing ⚠️
Additional details and impacted files

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

@clabby clabby requested a review from refcell October 4, 2024 18:25
@clabby clabby marked this pull request as ready for review October 4, 2024 18:25
@clabby clabby enabled auto-merge October 4, 2024 18:35
@clabby clabby added this pull request to the merge queue Oct 4, 2024
@clabby clabby removed this pull request from the merge queue due to a manual request Oct 4, 2024
@clabby clabby enabled auto-merge October 4, 2024 19:00
@clabby clabby added this pull request to the merge queue Oct 4, 2024
Merged via the queue into main with commit 44ad84c Oct 4, 2024
This was referenced Oct 9, 2024
@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
* fix(executor): Holocene EIP-1559 params in Header

* throw if params are missing post-holocene

* fix attributes builder + fmt

* tests

* sent `B64::ZERO` for the first holocene block

lin

* simplify branch
theochap pushed a commit to ethereum-optimism/optimism that referenced this pull request Jan 14, 2026
* fix(executor): Holocene EIP-1559 params in Header

* throw if params are missing post-holocene

* fix attributes builder + fmt

* tests

* sent `B64::ZERO` for the first holocene block

lin

* simplify branch
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A-protocol Area: protocol crates K-fix Kind: fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants