Skip to content

cl/beacon: add single_attestation event topic support#18142

Merged
AskAlexSharov merged 1 commit into
erigontech:mainfrom
mattevans:bn-api-evts-single-attes
Dec 12, 2025
Merged

cl/beacon: add single_attestation event topic support#18142
AskAlexSharov merged 1 commit into
erigontech:mainfrom
mattevans:bn-api-evts-single-attes

Conversation

@mattevans

@mattevans mattevans commented Dec 2, 2025

Copy link
Copy Markdown
Contributor

This PR fixes the Beacon API events endpoint to publish SingleAttestation objects (introduced in Electra) under the single_attestation topic instead of attestation.

Currently, Caplin publishes all attestations under the attestation topic, regardless of whether they are pre-Electra Attestation objects or post-Electra SingleAttestation objects.

References:

For context:

We'd love to see this added. We have some contributoors pushing to the ethPandaOps Xatu dataset using Caplin - but we're not capturing attestations because of it. For example: https://lab.ethpandaops.io/xatu/contributors/abstractdrank74#attestation-latency

@mattevans

Copy link
Copy Markdown
Contributor Author

Hi @domiwei @Giulio2002 - Given the approval, what might be the process to get this merged? 🙏

@Giulio2002

Copy link
Copy Markdown
Contributor

oh shoot, yes asap

@AskAlexSharov AskAlexSharov merged commit 0d0a0bf into erigontech:main Dec 12, 2025
16 checks passed
domiwei pushed a commit that referenced this pull request Dec 12, 2025
This PR fixes the Beacon API events endpoint to publish
SingleAttestation objects (introduced in Electra) under the
`single_attestation` topic instead of `attestation`.

Currently, Caplin publishes all attestations under the `attestation`
topic, regardless of whether they are pre-Electra `Attestation` objects
or post-Electra `SingleAttestation` objects.

**References:**
-
https://github.com/ethereum/consensus-specs/blob/dev/specs/electra/p2p-interface.md#beacon_attestation_subnet_id
-
https://github.com/ethereum/beacon-APIs/blob/master/apis/eventstream/index.yaml#L71
-
https://github.com/ethereum/consensus-specs/blob/dev/specs/electra/beacon-chain.md#singleattestation

**For context:**

We'd love to see this added. We have some contributoors pushing to the
ethPandaOps Xatu dataset using Caplin - but we're not capturing
attestations because of it. **For example:**
https://lab.ethpandaops.io/xatu/contributors/abstractdrank74#attestation-latency
domiwei added a commit that referenced this pull request Dec 12, 2025
This PR fixes the Beacon API events endpoint to publish
SingleAttestation objects (introduced in Electra) under the
`single_attestation` topic instead of `attestation`.

Currently, Caplin publishes all attestations under the `attestation`
topic, regardless of whether they are pre-Electra `Attestation` objects
or post-Electra `SingleAttestation` objects.

**References:**
-

https://github.com/ethereum/consensus-specs/blob/dev/specs/electra/p2p-interface.md#beacon_attestation_subnet_id
-

https://github.com/ethereum/beacon-APIs/blob/master/apis/eventstream/index.yaml#L71
-

https://github.com/ethereum/consensus-specs/blob/dev/specs/electra/beacon-chain.md#singleattestation

**For context:**

We'd love to see this added. We have some contributoors pushing to the
ethPandaOps Xatu dataset using Caplin - but we're not capturing
attestations because of it. **For example:**

https://lab.ethpandaops.io/xatu/contributors/abstractdrank74#attestation-latency

Co-authored-by: Matty Evans <mattevansnz@gmail.com>
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