-
Notifications
You must be signed in to change notification settings - Fork 284
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
[BEACON API] SSE for block builders #7837
[BEACON API] SSE for block builders #7837
Conversation
83e2057
to
e6396f8
Compare
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
just few nits
"parent_beacon_block_root", | ||
BYTES32_TYPE, | ||
payloadAttributes -> | ||
Optional.ofNullable(payloadAttributes.getParentBeaconBlockRoot())) |
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.
I'm not 100% sure, but we fill it always, so even for V1 we will set this field, which is not good I think
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.
hmmmm yeah you are right, not sure how to do this, got any idea?
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.
I think the cleanest way is to make additional record with only needed fields filled in accordance with "milestone.isGreater or" and passing it here instead of PayloadBuildingAttributes
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.
ok got it, done. wdyt?
...src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/events/PayloadAttributesEvent.java
Outdated
Show resolved
Hide resolved
...sition/src/main/java/tech/pegasys/teku/statetransition/block/NewBlockBuildingSubscriber.java
Show resolved
Hide resolved
...src/main/java/tech/pegasys/teku/beaconrestapi/handlers/v1/events/PayloadAttributesEvent.java
Outdated
Show resolved
Hide resolved
Also added issue #7847 as per talk |
850997b
to
fa3fbf5
Compare
PR Description
Implement ethereum/beacon-APIs#244
payload_attributes
EventType andPayloadAttributesEvent
NewBlockBuildingSubscriber
to be notified whenever new block is being built with all the information needed for the event as per the specForkChoiceNotifierImpl
Fixed Issue(s)
fixes #6817
Documentation
doc-change-required
label to this PR if updates are required.Changelog