Skip to content

feat(tests): eip-7918 blob base fee bounded by execution cost #1685

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

spencer-tb
Copy link
Contributor

@spencer-tb spencer-tb commented May 30, 2025

🗒️ Description

Adds intial tests for EIP-7918, including changes that allow us to use existing EIP-4844 test cases for EIP-7918. Additional tests should be added in the future missing gaps using the EIP checklist.

To trigger EIP-7918 coverage we need to make reserve_price > 1 by making base_fee_per_gas > 16. This is achieved in within some EIP-4844 tests by adding the following parameterization:

@pytest.mark.parametrize("base_fee_per_gas", [7, 100])

Note this parameterization can and should be added to more EIP-4844 tests in the future. I omitted some additions to not have to update the complicated gas calculation logic for now.

🔗 Related Issues

N/A

✅ Checklist

  • All: Set appropriate labels for the changes.
  • All: Considered squashing commits to improve commit history.
  • All: Added an entry to CHANGELOG.md.
  • All: Considered updating the online docs in the ./docs/ directory.

@spencer-tb spencer-tb added scope:forks Scope: Changes ethereum_test_forks package scope:tests Scope: Changes EL client test cases in `./tests` feature:eof fork:osaka Osaka hardfork labels May 30, 2025
Copy link
Member

@marioevz marioevz left a comment

Choose a reason for hiding this comment

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

Quick review and some early comments on this.

Thanks for putting this together!

@spencer-tb spencer-tb marked this pull request as ready for review June 2, 2025 17:28
@marioevz
Copy link
Member

marioevz commented Jun 3, 2025

I think if this fills correctly with forks/osaka from EELS, we should be able to do a release in the following days 👍

@spencer-tb spencer-tb changed the title feat(tests): update eip-4844 to align with eip-7918 feat(tests): eip-7918 blob base fee bounded by execution cost Jun 5, 2025
@spencer-tb spencer-tb force-pushed the spencer-tb/tests/eip-7918 branch 2 times, most recently from 976a0e0 to f007046 Compare June 5, 2025 22:05
@spencer-tb spencer-tb requested a review from marioevz June 5, 2025 22:05
@spencer-tb spencer-tb self-assigned this Jun 8, 2025
@spencer-tb spencer-tb force-pushed the spencer-tb/tests/eip-7918 branch from 42c34d3 to fb5d79d Compare June 9, 2025 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature:eof fork:osaka Osaka hardfork scope:forks Scope: Changes ethereum_test_forks package scope:tests Scope: Changes EL client test cases in `./tests`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants