Skip to content

Pass blobs into ValidatorStore::sign_block #7497

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

Merged
merged 3 commits into from
May 21, 2025

Conversation

dknopik
Copy link
Member

@dknopik dknopik commented May 20, 2025

Issue Addressed

While the Lighthouse implementation of the ValidatorStore does not really care about blobs, Anchor needs to be able to return different blobs from sign_blocks than what was passed into it, in case it decides to sign another Anchor node's block. Only passing the unsigned block into sign_block and only returning a signed block from it (without any blobs and proofs) was an oversight in #6705.

Proposed Changes

  • Replace validator_store::{Uns,S}ignedBlock with validator_store::block_service::{Uns,S}ignedBlock, as we need all data in there.
  • In lighthouse_validator_store, just add the received blobs back to the signed block after signing it.

@dknopik
Copy link
Member Author

dknopik commented May 20, 2025

@michaelsproul Could you please take a look? 🙏

Copy link

mergify bot commented May 20, 2025

Some required checks have failed. Could you please take a look @dknopik? 🙏

@mergify mergify bot added the waiting-on-author The reviewer has suggested changes and awaits thier implementation. label May 20, 2025
@michaelsproul michaelsproul added val-client Relates to the validator client binary ready-for-review The code is ready for review anchor Anchor client and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels May 20, 2025
Copy link
Member

@michaelsproul michaelsproul left a comment

Choose a reason for hiding this comment

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

Looks good

Nice to get rid of some of those leftover types in block_service too!

@michaelsproul michaelsproul added ready-for-merge This PR is ready to merge. and removed ready-for-review The code is ready for review labels May 21, 2025
mergify bot added a commit that referenced this pull request May 21, 2025
@mergify mergify bot merged commit 0688932 into sigp:unstable May 21, 2025
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
anchor Anchor client ready-for-merge This PR is ready to merge. val-client Relates to the validator client binary
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants