Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

VC: use block publication v2 SSZ API #6523

Merged
merged 1 commit into from
Oct 21, 2024

Conversation

michaelsproul
Copy link
Member

Issue Addressed

Prepare for the removal of the v1 block publishing API:

Proposed Changes

Switch the VC over to using the v2 version of the block publication API, with the default broadcast_validation=gossip (equivalent to current behaviour).

While making the change, I think we should also switch to sending SSZ rather than JSON. This should be slightly quicker for the BN to decode.

Testing

The simulator tests cover the interaction between current versions of the Lighthouse VC and BN. We can conduct further testing as part of the v6.0.0 release rollout on testnet infra.

Additional Info

We could guard the use of SSZ behind a new flag, but this feels somewhat unnecessary. Lighthouse BN has no issue with SSZ, and other clients have also supported it on this endpoint for a long time. This change is somewhat overdue.

@michaelsproul michaelsproul added val-client Relates to the validator client binary ready-for-review The code is ready for review optimization Something to make Lighthouse run more efficiently. backwards-incompat Backwards-incompatible API change v6.0.0 New major release for hierarchical state diffs labels Oct 21, 2024
Copy link
Member

@macladson macladson left a comment

Choose a reason for hiding this comment

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

Nice! I agree with your comments regarding SSZ as well 👍

@macladson macladson added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels Oct 21, 2024
@michaelsproul
Copy link
Member Author

@mergify queue

Copy link

mergify bot commented Oct 21, 2024

queue

✅ The pull request has been merged automatically

The pull request has been merged automatically at b88cb8c

mergify bot added a commit that referenced this pull request Oct 21, 2024
@mergify mergify bot merged commit b88cb8c into sigp:unstable Oct 21, 2024
29 checks passed
chong-he pushed a commit to chong-he/lighthouse that referenced this pull request Nov 26, 2024
* VC: use block publication v2 SSZ API
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
backwards-incompat Backwards-incompatible API change optimization Something to make Lighthouse run more efficiently. ready-for-merge This PR is ready to merge. v6.0.0 New major release for hierarchical state diffs val-client Relates to the validator client binary
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants