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

7013 add blinded blocks block contents type #7150

Conversation

mehdi-aouadi
Copy link
Contributor

PR Description

Add blinded block and blinded block contents deseriliasation types

Spec reference here

Fixed Issue(s)

#7013

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

  • I thought about adding a changelog entry, and added one if I deemed necessary.

@mehdi-aouadi mehdi-aouadi added the Epic Deneb Issues required to implement Deneb upgrade label May 16, 2023
@mehdi-aouadi mehdi-aouadi self-assigned this May 16, 2023
@mehdi-aouadi
Copy link
Contributor Author

This PR is rebased on #7146

Comment on lines 57 to 60
SignedBlobSidecarSchema.create(
BlobSidecarSchema.create(
new BlobSchema(
spec.getGenesisSpecConfig().toVersionDeneb().orElseThrow()))),
Copy link
Contributor

Choose a reason for hiding this comment

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

Basically this, it's just generally not fully exposed here...
if you look at GetLightClientBootstrap as an example, but basically you'd be doing the .create elsewhere, and here it'd be something like

SchemaDefinitionsDeneb.required(
                schemaDefinitionCache.getSchemaDefinition(SpecMilestone.DENEB))
            .getSignedBlockContentsSchema()
            .getJsonTypeDefinition()

Copy link
Contributor

Choose a reason for hiding this comment

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

admittedly arugable either way in an actual test, but in the endpoints it'd look like this...

Comment on lines 79 to 73
SignedBlindedBlockContentsSchema.create(
spec.getGenesisSpecConfig().toVersionDeneb().orElseThrow(),
SignedBlindedBlobSidecarSchema.create(BlindedBlobSidecarSchema.create()),
spec.getGenesisSchemaDefinitions().getSignedBeaconBlockSchema())
.getJsonTypeDefinition())
Copy link
Contributor

Choose a reason for hiding this comment

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

SchemaDefinitionsDeneb.required(
                schemaDefinitionCache.getSchemaDefinition(SpecMilestone.DENEB))
            .getSignedBlindedBlockContentsSchema()
            .getJsonTypeDefinition()

ish..

@StefanBratanov StefanBratanov force-pushed the 7013-add-blinded-blocks-blockcontents-type branch from 2c2c6f4 to 8aabca1 Compare May 17, 2023 09:10
Copy link
Contributor

@rolfyone rolfyone left a comment

Choose a reason for hiding this comment

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

Lgtm

@StefanBratanov StefanBratanov merged commit 2b24809 into Consensys:master May 17, 2023
@mehdi-aouadi mehdi-aouadi deleted the 7013-add-blinded-blocks-blockcontents-type branch July 26, 2023 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic Deneb Issues required to implement Deneb upgrade
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants