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

add missing fields to get blob sidecars request #5987

Merged
merged 8 commits into from
Aug 19, 2024

Conversation

eserilev
Copy link
Collaborator

Issue Addressed

Closes #5977

Proposed Changes

Adds missing fields to get blob sidecars request

@eserilev eserilev added ready-for-review The code is ready for review HTTP-API labels Jun 25, 2024
@michaelsproul michaelsproul added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels Jul 1, 2024
@eserilev eserilev added ready-for-review The code is ready for review and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels Jul 10, 2024
@jimmygchen jimmygchen added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels Jul 12, 2024
@eserilev eserilev force-pushed the add-missing-fields-get-blob-sidecars branch from a0e5092 to 81e6879 Compare July 27, 2024 01:15
fetch from cache if its a head block
@eserilev eserilev force-pushed the add-missing-fields-get-blob-sidecars branch from 81e6879 to 969e4c7 Compare July 27, 2024 03:58
@eserilev eserilev added ready-for-review The code is ready for review and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels Jul 27, 2024
Copy link
Member

@michaelsproul michaelsproul 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 on the whole, just one small issue that I think we should fix before merging

beacon_node/http_api/src/block_id.rs Outdated Show resolved Hide resolved
@michaelsproul michaelsproul added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels Jul 29, 2024
@eserilev eserilev added ready-for-review The code is ready for review and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels Jul 29, 2024
@chong-he
Copy link
Member

Tested and can confirm that the fields version, execution_optimistic and finalized are now in the beacon API query of endpoint eth/v1/beacon/blob_sidecars

Copy link
Collaborator

@dapplion dapplion left a comment

Choose a reason for hiding this comment

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

http crate is not my expertise but can't find any issues with the current approach :)

@michaelsproul michaelsproul added ready-for-merge This PR is ready to merge. backwards-incompat Backwards-incompatible API change and removed ready-for-review The code is ready for review backwards-incompat Backwards-incompatible API change labels Aug 19, 2024
Comment on lines +273 to +278
let block = BlockId::blinded_block_by_root(&root, chain)?.ok_or_else(|| {
warp_utils::reject::custom_not_found(format!("beacon block with root {}", root))
})?;

// Return the `BlobSidecarList` identified by `self`.
let blob_sidecar_list = chain
Copy link
Member

@michaelsproul michaelsproul Aug 19, 2024

Choose a reason for hiding this comment

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

Now that we're loading the block and blobs together, it could be good to check that all the blobs are loaded, and return a 404 in case they aren't

Related to this issue:

I added (and then removed) the backwards-incompat tag because I thought this change may already accomplish this, but we don't have the check (yet), so it doesn't.

@michaelsproul
Copy link
Member

@mergify queue

Copy link

mergify bot commented Aug 19, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at 0429158

mergify bot added a commit that referenced this pull request Aug 19, 2024
@mergify mergify bot merged commit 0429158 into sigp:unstable Aug 19, 2024
28 checks passed
AgeManning pushed a commit to AgeManning/lighthouse that referenced this pull request Sep 3, 2024
* add missing fields to get blob sidecars request

* add fork versioned  response impl

* only compute the block root once

* Merge branch 'unstable' of https://github.com/sigp/lighthouse into add-missing-fields-get-blob-sidecars

* Merge branch 'unstable' of https://github.com/sigp/lighthouse into add-missing-fields-get-blob-sidecars

* fetch root first

fetch from cache if its a head block

* fmt

* always load from db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HTTP-API ready-for-merge This PR is ready to merge.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants