Skip to content

chore(forks): osaka tweak and fix blob schedule logic #1438

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 1 commit into
base: main
Choose a base branch
from

Conversation

spencer-tb
Copy link
Contributor

@spencer-tb spencer-tb commented Apr 11, 2025

πŸ—’οΈ Description

Updates the logic in forks, such that we always include the blob schedule within the fixtures for any new fork.

Additionally removes CancunEIP7692.

πŸ”— 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 type:chore Type: Chore fork:osaka Osaka hardfork labels Apr 11, 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.

Just one comment, thanks!

@@ -975,7 +975,7 @@ def blob_schedule(cls, block_number: int = 0, timestamp: int = 0) -> BlobSchedul
max_blobs_per_block=cls.max_blobs_per_block(block_number, timestamp),
base_fee_update_fraction=cls.blob_base_fee_update_fraction(block_number, timestamp),
)
if last_blob_schedule is None or last_blob_schedule != current_blob_schedule:
if parent_fork.name() != cls.name() or last_blob_schedule != current_blob_schedule:
Copy link
Member

Choose a reason for hiding this comment

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

If the goal is to add an entry to every fork, even if there's no blob changes between previous fork and current one, then we can remove a lot of the logic, but we also should add a test to https://github.com/ethereum/execution-spec-tests/blob/main/src/ethereum_test_forks/tests/test_forks.py, which should verify that the entry is added to the fork even when it has no blob_schedule changes:

class NewTestFork(Prague):
    ...

assert NewTestFork.blob_schedule() == {"Cancun": ..., "Prague": ..., "NewTestFork": ...}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fork:osaka Osaka hardfork scope:forks Scope: Changes ethereum_test_forks package type:chore Type: Chore
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants