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

fix check on max request size blobs by range #4250

Merged

Conversation

realbigsean
Copy link
Member

We have a check to prevent us from doing work in blobs by range when the request is too long, but ours is currently too low:

if req.count > MAX_REQUEST_BLOB_SIDECARS

This is in the consensus spec:
The response MUST contain no more than count * MAX_BLOBS_PER_BLOCK blob sidecars.

So the check should be if req.count > MAX_REQUEST_BLOB_SIDECARS. Additionally changed the response logging because we can't know whether we've sent all required blobs because the number of blobs requested is not specified in the request

@realbigsean realbigsean added ready-for-review The code is ready for review low-hanging-fruit Easy to resolve, get it before someone else does! deneb labels May 1, 2023
Copy link
Member

@jimmygchen jimmygchen 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 👍

@realbigsean realbigsean merged commit 9db6b39 into sigp:deneb-free-blobs May 2, 2023
realbigsean added a commit to realbigsean/lighthouse that referenced this pull request May 15, 2023
@realbigsean realbigsean deleted the blob-by-range-count-usage branch November 21, 2023 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deneb low-hanging-fruit Easy to resolve, get it before someone else does! ready-for-review The code is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants