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 blob syncing for Electra #6438

Merged
merged 2 commits into from
Jul 23, 2024
Merged

Fix blob syncing for Electra #6438

merged 2 commits into from
Jul 23, 2024

Conversation

etan-status
Copy link
Contributor

BlobSidecar requests on libp2p have a context prefix based on:

The <context-bytes> field is calculated as context =
compute_fork_digest(fork_version, genesis_validators_root)

We currently only process blobs if that indicates Deneb, meaning that on Electra we incorrectly report InvalidContextBytes and refuse to process the blob response data.

Fix this, and also ensure that the code no longer needs maintenance with every fork unrelated to blobs.

`BlobSidecar` requests on libp2p have a context prefix based on:

> The `<context-bytes>` field is calculated as context =
>     `compute_fork_digest(fork_version, genesis_validators_root)`

We currently only process blobs if that indicates Deneb, meaning that
on Electra we incorrectly report `InvalidContextBytes` and refuse to
process the blob response data.

Fix this, and also ensure that the code no longer needs maintenance
with every fork unrelated to blobs.
@etan-status
Copy link
Contributor Author

etan-status commented Jul 22, 2024

Spec is a bit vague about the fork digest to use, btw.

When producing response, we use peer.network.forkDigestAtEpoch(blockRef.slot.epoch).data.

It doesn't hurt to just accept either deneb/electra fork digests when reading.

@etan-status
Copy link
Contributor Author

@tersec tersec merged commit ae0a148 into unstable Jul 23, 2024
13 checks passed
@tersec tersec deleted the dev/etan/ef-blobs branch July 23, 2024 03:10
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