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

Do not send column requests if there is no blob for the block. #6814

Open
wants to merge 1 commit into
base: unstable
Choose a base branch
from

Conversation

jimmygchen
Copy link
Member

Issue Addressed

We currently send custody column requests to peers even on blocks that do not contain any blobs. This is unnecessary and is removed in this PR.

@jimmygchen jimmygchen added bug Something isn't working ready-for-review The code is ready for review low-hanging-fruit Easy to resolve, get it before someone else does! das Data Availability Sampling labels Jan 17, 2025
@jimmygchen jimmygchen requested a review from dapplion January 17, 2025 05:15
@jimmygchen jimmygchen requested a review from jxs as a code owner January 17, 2025 05:15
cx: &mut SyncNetworkContext<T>,
) -> Result<LookupRequestResult, LookupRequestError> {
if expected_blobs == 0 {
return Ok(LookupRequestResult::NoRequestNeeded("no columns to fetch"));
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe move this into custody_lookup_request to group all LookupRequestResult conditions

@jimmygchen jimmygchen added waiting-on-author The reviewer has suggested changes and awaits thier implementation. ready-for-review The code is ready for review and removed ready-for-review The code is ready for review waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels Jan 17, 2025
jimmygchen added a commit to jimmygchen/lighthouse that referenced this pull request Jan 17, 2025
)

Squashed commit of the following:

commit 884ba44
Author: Jimmy Chen <[email protected]>
Date:   Fri Jan 17 16:13:28 2025 +1100

    Do not send column requests if there is no blob for the block.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working das Data Availability Sampling 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.

2 participants