-
Notifications
You must be signed in to change notification settings - Fork 1k
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
fixing SSE payloads #12154
fixing SSE payloads #12154
Conversation
if !ok { | ||
return nil | ||
} | ||
if err := s.streamPayloadAttributes(stream, emitSlot); err != nil { |
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.
Nice! another option is to do s.CurrentSlot()
from one of the fetcher. This is fine too
@@ -250,8 +259,14 @@ func (s *Server) handleStateEvents( | |||
|
|||
// streamPayloadAttributes on new head event. | |||
// This event stream is intended to be used by builders and relays. | |||
// parent_ fields are based on state at N_{current_slot}, while the rest of fields are based on state of N_{current_slot + 1} |
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.
// parent_ fields are based on state at N_{current_slot}, while the rest of fields are based on state of N_{current_slot + 1} | |
// parent_ fields are based on state at N_{current_slot}, while the rest of the fields are based on state at N_{current_slot + 1} |
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.
Will make note and hopefully fix in another PR don't want to block this one and retrigger CI/CD for comments.
What type of PR is this?
Bug fix
What does this PR do? Why is it needed?
fixes the missed json type casing on
data
will also send the head information on missed slots
Which issues(s) does this PR fix?
Fixes #12153
related to #12102