-
Notifications
You must be signed in to change notification settings - Fork 199
Add data_column_sidecar event to eventstream API #535
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 data_column_sidecar event to eventstream API #535
Conversation
Extends the eventstream API to support data_column_sidecar events for PeerDAS (EIP-7594) data availability sampling. The event is emitted when the node receives a DataColumnSidecar that passes all gossip validations.
apis/eventstream/index.yaml
Outdated
| description: The node has received a DataColumnSidecar (from P2P or API) that passes all gossip validations on the data_column_sidecar_{subnet_id} topic | ||
| value: | | ||
| event: data_column_sidecar | ||
| data: {"block_root": "0xcf8e0d4e9587369b2301d0790347320302cc0943d5a1884560367e8208d920f2", "index": "1", "slot": "1", "kzg_commitments": ["0x1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505cc411d61252fb6cb3fa0017b679f8bb2305b26a285fa2737f175668d0dff91cc1b66ac1fb663c9bc59509846d6ec05345bd908eda73e670af888da41af171505"]} |
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.
the one for blobsidecar has versioned_hash. is a matching versioned_hashes field no longer needed here?
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.
updated
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.
@etan-status flattening the versioned hashes to a flat byte array and 0xHex-ing it can take a while, per column, per notification, i'd suggest it would be nice if we can skip this field or something, if there's not much use case
moreover i think we'd be streaming the same set of versioned hashes for every data column no? can someone confirm? cc @nalepae
|
Prysm implementation: OffchainLabs/prysm#15387 |
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's implicit in the description but noting that this excludes columns from reconstruction
N/A Implement events for data column sidecar ethereum/beacon-APIs#535
**Motivation** Support SSE Events for DataColumn **Description** Add SSE supports for DataColumns. ethereum/beacon-APIs#535 **Steps to test or reproduce** Run all tests --------- Co-authored-by: Nico Flaig <[email protected]>
Extends the eventstream API to support data_column_sidecar events for PeerDAS (EIP-7594) data availability sampling. The event is emitted when the node receives a DataColumnSidecar that passes all gossip validations.