Skip to content

Commit

Permalink
Merge branch 'master' of github.com:attestantio/go-eth2-client
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Sep 29, 2023
2 parents e9f4410 + 2b52310 commit 62cac5c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions http/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,14 @@ func (s *Service) handleEvent(ctx context.Context, msg *sse.Event, handler clien
return
}
event.Data = contributionAndProofEvent
case "payload_attributes":
payloadAttributesEvent := &api.PayloadAttributesEvent{}
err := json.Unmarshal(msg.Data, payloadAttributesEvent)
if err != nil {
log.Error().Err(err).RawJSON("data", msg.Data).Msg("Failed to parse payload attributes event")
return
}
event.Data = payloadAttributesEvent
case "":
// Used as keepalive. Ignore.
return
Expand Down

0 comments on commit 62cac5c

Please sign in to comment.