Skip to content

VC: use block publication v2 SSZ API#6523

Merged
mergify[bot] merged 1 commit intosigp:unstablefrom
michaelsproul:update-block-publish
Oct 21, 2024
Merged

VC: use block publication v2 SSZ API#6523
mergify[bot] merged 1 commit intosigp:unstablefrom
michaelsproul:update-block-publish

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

@mergify
Copy link

mergify bot commented Oct 21, 2024

queue

✅ The pull request has been merged automatically

Details

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
chong-he pushed a commit to chong-he/lighthouse that referenced this pull request Nov 26, 2024
* VC: use block publication v2 SSZ API
Sign up for free to join this conversation on GitHub. Already have an account? Sign in 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