Skip to content
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

Implement EIP 7685 and 6110 #946

Merged
merged 4 commits into from
May 14, 2024
Merged

Implement EIP 7685 and 6110 #946

merged 4 commits into from
May 14, 2024

Conversation

gurukamath
Copy link
Collaborator

(closes #937 )

What was wrong?

The EIPs 7685 and 6110 were not implemented.

Related to Issue #937

How was it fixed?

Implement the EIPs for Prague

Cute Animal Picture

Cute Animals - 1 of 1 (1)

Copy link
Collaborator

@SamWilsn SamWilsn left a comment

Choose a reason for hiding this comment

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

Looks good as far as the Python is concerned.

src/ethereum/prague/blocks.py Outdated Show resolved Hide resolved
src/ethereum/prague/blocks.py Outdated Show resolved Hide resolved
@@ -103,3 +116,79 @@ class Receipt:
cumulative_gas_used: Uint
bloom: Bloom
logs: Tuple[Log, ...]


def validate_requests(requests: Tuple[Bytes, ...]) -> None:
Copy link
Collaborator

Choose a reason for hiding this comment

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

You should also verify that the request root doesn't contain spurious requests with an unknown type. Otherwise the block builder could stuff arbitrary data into the requests list which is obviously bad.

Probably EIP 7685 should be updated to explicitly say that requests may not be included unless authorised by another EIP.

@gurukamath gurukamath merged commit 99a7765 into forks/prague May 14, 2024
5 checks passed
@gurukamath gurukamath mentioned this pull request Aug 29, 2024
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