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

Added SingleAttestationEvent #8873

Merged
merged 7 commits into from
Dec 4, 2024

Conversation

rolfyone
Copy link
Contributor

@rolfyone rolfyone commented Dec 2, 2024

  • if the attestation arriving is a singleAttestation, will fire a single_attestation event, otherwise will trigger an attestation event.

  • at the moment we only see attestations, but added unit test and can re-verify once we have single attestations being produced...

  • can essentially listen to both by : curl -H "Accept:text/event-stream" -N http://localhost:5051/eth/v1/events\?topics\=attestation,single_attestation

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

 - if the attestation arriving is a singleAttestation, will fire a single_attestation event, otherwise will trigger an attestation event.

- at the moment we only see attestations, but added unit test and can re-verify once we have single attestations being produced...

 - can essentially listen to both by :
 `curl -H "Accept:text/event-stream" -N http://localhost:5051/eth/v1/events\?topics\=attestation,single_attestation`

Signed-off-by: Paul Harris <[email protected]>
Copy link
Contributor

@tbenr tbenr left a comment

Choose a reason for hiding this comment

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

As mentioned during stand-up, I suspect some tests need to be updated to have something next to tech/pegasys/teku/beaconrestapi/handlers/v1/events/schema/AttestationElectra.json and the other events to check the schema.

@rolfyone
Copy link
Contributor Author

rolfyone commented Dec 3, 2024

As mentioned during stand-up, I suspect some tests need to be updated to have something next to tech/pegasys/teku/beaconrestapi/handlers/v1/events/schema/AttestationElectra.json and the other events to check the schema.

we haven't ever maintained that list, its basically just wrong but i'll try to make it less random.

Copy link
Member

@lucassaldanha lucassaldanha left a comment

Choose a reason for hiding this comment

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

LGTM. For this user-facing change, it might be worth adding a changelog entry.

@rolfyone rolfyone enabled auto-merge (squash) December 4, 2024 01:12
@rolfyone rolfyone merged commit 9e80efa into Consensys:master Dec 4, 2024
17 checks passed
+ EnumSet.allOf(EventType.class).stream()
.map(val -> "`" + val.toString() + "`")
.sorted()
.collect(Collectors.joining(", ")),
Copy link
Contributor

Choose a reason for hiding this comment

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

haven't you missed the closing ] here?

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.

3 participants