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

core/types: add length check in CalcRequestsHash #30829

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

fjl
Copy link
Contributor

@fjl fjl commented Nov 28, 2024

The existing implementation is correct when building and verifying blocks, since we will only collect non-empty requests into the block requests list.

But it isn't correct for cases where a requests list containing empty items is sent by the consensus layer on the engine API. We want to ensure that empty requests do not cause a difference in validation there, so the commitment computation should explicitly skip them.

The existing implementation is correct when building and verifying blocks, since we will
only collect non-empty requests into the block requests list.

But it isn't correct for cases where a requests list containing empty items is sent by the
consensus layer on the engine API. We want to ensure that empty requests do not cause a
difference in validation there, so the commitment computation should explicitly skip them.
@fjl fjl added this to the 1.14.13 milestone Nov 28, 2024
@fjl fjl added the prague label Nov 28, 2024
Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

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

LGTM

@fjl fjl merged commit c7a8bce into ethereum:master Nov 28, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants