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 #2218

Merged
merged 1 commit into from
Dec 4, 2024
Merged

core/types: add length check in CalcRequestsHash #2218

merged 1 commit into from
Dec 4, 2024

Conversation

ucwong
Copy link
Member

@ucwong ucwong commented Dec 4, 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.
@ucwong ucwong marked this pull request as ready for review December 4, 2024 12:26
@ucwong ucwong merged commit ee8975b into master Dec 4, 2024
1 check passed
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.

2 participants