Skip to content

Conversation

@nazarhussain
Copy link
Contributor

Motivation

Support SSE Events for DataColumn

Description

Add SSE supports for DataColumns.

ethereum/beacon-APIs#535

Steps to test or reproduce

Run all tests

@nazarhussain nazarhussain changed the title Nh/data column sse feat: data_column_sidecar sse event support Jun 11, 2025
@nazarhussain nazarhussain marked this pull request as ready for review June 11, 2025 14:14
@nazarhussain nazarhussain requested a review from a team as a code owner June 11, 2025 14:14
if (emitter.listenerCount(routes.events.EventType.dataColumnSidecar) === 0) return;

// TODO: Ideally it would be checked with ForkSeq > fulu but it's not returning right type
if (blockInput.blockData.fork !== ForkName.fulu) return;
Copy link
Member

@wemeetagain wemeetagain Jun 11, 2025

Choose a reason for hiding this comment

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

this can be something like if (isForkPreFulu(...)) return;
then the todo can be removed

Copy link
Member

Choose a reason for hiding this comment

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

if (!isForkPostFulu(blockInput.blockData.fork)) return; doesn't seem to infer the type correctly but strictly checking for fulu is really error prone and will break in the next fork

@codecov
Copy link

codecov bot commented Jun 11, 2025

Codecov Report

Attention: Patch coverage is 42.10526% with 22 lines in your changes missing coverage. Please review.

Project coverage is 54.34%. Comparing base (23530b6) to head (78b0966).
Report is 1 commits behind head on peerDAS.

Additional details and impacted files
@@             Coverage Diff             @@
##           peerDAS    #7953      +/-   ##
===========================================
- Coverage    54.36%   54.34%   -0.02%     
===========================================
  Files          843      842       -1     
  Lines        62137    62118      -19     
  Branches      4680     4669      -11     
===========================================
- Hits         33779    33760      -19     
  Misses       28285    28285              
  Partials        73       73              
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@nflaig nflaig left a comment

Choose a reason for hiding this comment

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

it seems like we emit multiple events if we receive data column sidecars through gossip

@nazarhussain nazarhussain merged commit 51c5cbf into peerDAS Jun 13, 2025
32 of 36 checks passed
@nazarhussain nazarhussain deleted the nh/data-column-sse branch June 13, 2025 11:46
wemeetagain pushed a commit that referenced this pull request Jun 23, 2025
)

**Motivation**

Right now we only emit `blob_sidecar` event during block import when we
have received all blobs but this is not ideal as the event is mostly
used to gather timing information of when blobs are received by nodes in
the network. We should emit the event as soon as possible similar to
#7953.

**Description**

Emit `blob_sidecar` event as soon as we receive `BlobSidecar`
- through `publishBlock` api if we are proposer
- on `blob_sidecar` gossip topic from the network
- from engine api via `engine_getBlobsV1` method
- from req/resp via `blob_sidecars_by_root` method
@wemeetagain
Copy link
Member

🎉 This PR is included in v1.34.0 🎉

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.

4 participants