-
Notifications
You must be signed in to change notification settings - Fork 290
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
Conversation
- 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]>
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.
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. |
Signed-off-by: Paul Harris <[email protected]>
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.
LGTM. For this user-facing change, it might be worth adding a changelog entry.
Signed-off-by: Paul Harris <[email protected]>
…ingle-attestation-event
+ EnumSet.allOf(EventType.class).stream() | ||
.map(val -> "`" + val.toString() + "`") | ||
.sorted() | ||
.collect(Collectors.joining(", ")), |
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.
haven't you missed the closing ]
here?
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
doc-change-required
label to this PR if updates are required.Changelog