Skip to content

Commit

Permalink
Workaround for lodestar not supporting SSZ for proposal submission.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Mar 19, 2024
1 parent 8a03865 commit cd0eaf4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion http/submitproposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,13 @@ func (s *Service) submitProposalData(ctx context.Context,
var contentType ContentType
var err error

if s.enforceJSON {
nodeClientResponse, err := s.NodeClient(ctx)
nodeClient := "unknown"
if err == nil {
nodeClient = nodeClientResponse.Data
}

if s.enforceJSON || nodeClient == "lodestar" {
contentType = ContentTypeJSON
body, err = s.submitProposalJSON(ctx, proposal)
} else {
Expand Down

0 comments on commit cd0eaf4

Please sign in to comment.