-
-
Notifications
You must be signed in to change notification settings - Fork 411
feat: data_column_sidecar sse event support #7953
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
Conversation
| 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; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 ReportAttention: Patch coverage is
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:
|
nflaig
left a comment
There was a problem hiding this 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
) **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
|
🎉 This PR is included in v1.34.0 🎉 |
Motivation
Support SSE Events for DataColumn
Description
Add SSE supports for DataColumns.
ethereum/beacon-APIs#535
Steps to test or reproduce
Run all tests