Skip to content
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

Add SSZ support to the Proposer API #685

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Add SSZ support to the Proposer API #685

wants to merge 10 commits into from

Conversation

jtraglia
Copy link
Collaborator

📝 Summary

This PR adds SSZ support to the Proposer API endpoints, as described here:

✅ I have run these commands

  • make lint
  • make test-race
  • go mod tidy
  • I have seen and agree to CONTRIBUTING.md

@jtraglia jtraglia marked this pull request as ready for review February 21, 2025 17:38
err = signedValidatorRegistrations.UnmarshalSSZ(regBytes)
default:
log.Debug("Parsing registrations as JSON")
err = json.Unmarshal(regBytes, signedValidatorRegistrations)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This request comes in huge bursts (at epoch boundary), and decoding the JSON is a huge bottleneck. That's why we've moved to the fast json decode above, that this PR deleted. We definitely need the previous fast json decoding, otherwise it's a huge bottleneck in production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants