Add deneb block to consensus types#12368
Merged
terencechain merged 2 commits intodeneb-integrationfrom May 8, 2023
Merged
Conversation
762ad2b to
07f9093
Compare
rkapka
requested changes
May 8, 2023
| } | ||
|
|
||
| // PbCapella -- | ||
| func (e executionPayloadCapella) ExcessDataGas() ([]byte, error) { |
| } | ||
|
|
||
| // PbCapella -- | ||
| func (e executionPayloadHeaderCapella) ExcessDataGas() ([]byte, error) { |
consensus-types/blocks/execution.go
Outdated
| return true, nil | ||
| } | ||
|
|
||
| // executionPayloadHeaderDeneb is a convenience wrapper around a blinded beacon block body's execution header data structure |
Contributor
There was a problem hiding this comment.
Suggested change
| // executionPayloadHeaderDeneb is a convenience wrapper around a blinded beacon block body's execution header data structure | |
| // executionPayloadHeaderDeneb is a convenience wrapper around a blinded beacon block body's execution header data structure. |
Comment on lines
+59
to
+64
| case *eth.GenericSignedBeaconBlock_Deneb: | ||
| return initSignedBlockFromProtoDeneb(b.Deneb.Block) | ||
| case *eth.SignedBeaconBlockDeneb: | ||
| return initSignedBlockFromProtoDeneb(b) | ||
| case *eth.SignedBlindedBeaconBlockDeneb: | ||
| return initBlindedSignedBlockFromProtoDeneb(b) |
Contributor
There was a problem hiding this comment.
Missing GenericSignedBeaconBlock_BlindedDeneb
If everything works correctly without this, it makes me wonder if we even need GenericXXX cases here. But that it a question for another time, here I would blindly add it.
Comment on lines
+99
to
+106
| case *eth.GenericBeaconBlock_Deneb: | ||
| return initBlockFromProtoDeneb(b.Deneb.Block) | ||
| case *eth.BeaconBlockDeneb: | ||
| return initBlockFromProtoDeneb(b) | ||
| case *eth.BlindedBeaconBlockDeneb: | ||
| return initBlindedBlockFromProtoDeneb(b) |
Contributor
There was a problem hiding this comment.
Missing GenericBeaconBlock_BlindedDeneb
| VoluntaryExits: f.voluntaryExits, | ||
| SyncAggregate: f.syncAggregate, | ||
| ExecutionPayloadHeader: f.execPayloadHeaderDeneb, | ||
| BlsToExecutionChanges: f.blsToExecutionChanges, |
Contributor
There was a problem hiding this comment.
Same comment as for bodyPbDeneb()
| voluntaryExits: f.voluntaryExits, | ||
| syncAggregate: f.syncAggregate, | ||
| executionPayload: p, | ||
| blsToExecutionChanges: f.blsToExecutionChanges, |
Contributor
There was a problem hiding this comment.
Same comment as for bodyPbDeneb()
| voluntaryExits: f.voluntaryExits, | ||
| syncAggregate: f.syncAggregate, | ||
| executionPayloadHeader: ph, | ||
| blsToExecutionChanges: f.blsToExecutionChanges, |
Contributor
There was a problem hiding this comment.
Same comment as for bodyPbDeneb()
consensus-types/blocks/setters.go
Outdated
| func (b *SignedBeaconBlock) SetBlobKzgCommitments(c [][]byte) error { | ||
| switch b.version { | ||
| case version.Phase0, version.Altair, version.Bellatrix, version.Capella: | ||
| return consensus_types.ErrNotSupported("BlobKzgCommitments", b.version) |
Contributor
There was a problem hiding this comment.
Suggested change
| return consensus_types.ErrNotSupported("BlobKzgCommitments", b.version) | |
| return consensus_types.ErrNotSupported("SetBlobKzgCommitments", b.version) |
| Header() (*ethpb.SignedBeaconBlockHeader, error) | ||
| } | ||
|
|
||
| type ReadOnlySignedBeaconBlockSlice []ReadOnlySignedBeaconBlock |
729fa25 to
6a957c1
Compare
3fe5ab4 to
cd2a5c2
Compare
rkapka
approved these changes
May 8, 2023
terencechain
added a commit
that referenced
this pull request
May 11, 2023
terencechain
added a commit
that referenced
this pull request
May 11, 2023
terencechain
added a commit
that referenced
this pull request
May 16, 2023
terencechain
added a commit
that referenced
this pull request
May 17, 2023
terencechain
added a commit
that referenced
this pull request
May 18, 2023
kasey
pushed a commit
that referenced
this pull request
May 19, 2023
kasey
pushed a commit
that referenced
this pull request
May 22, 2023
terencechain
added a commit
that referenced
this pull request
May 23, 2023
james-prysm
added a commit
that referenced
this pull request
May 23, 2023
terencechain
added a commit
that referenced
this pull request
May 23, 2023
terencechain
added a commit
that referenced
this pull request
May 26, 2023
terencechain
added a commit
that referenced
this pull request
May 31, 2023
terencechain
added a commit
that referenced
this pull request
Jun 27, 2023
terencechain
added a commit
that referenced
this pull request
Jun 27, 2023
james-prysm
pushed a commit
that referenced
this pull request
Jun 27, 2023
terencechain
added a commit
that referenced
this pull request
Jul 7, 2023
terencechain
added a commit
that referenced
this pull request
Jul 9, 2023
terencechain
added a commit
that referenced
this pull request
Jul 10, 2023
terencechain
added a commit
that referenced
this pull request
Jul 10, 2023
terencechain
added a commit
that referenced
this pull request
Jul 13, 2023
terencechain
added a commit
that referenced
this pull request
Jul 13, 2023
terencechain
added a commit
that referenced
this pull request
Jul 20, 2023
terencechain
added a commit
that referenced
this pull request
Jul 20, 2023
kasey
pushed a commit
that referenced
this pull request
Jul 20, 2023
terencechain
added a commit
that referenced
this pull request
Jul 21, 2023
terencechain
added a commit
that referenced
this pull request
Jul 21, 2023
james-prysm
pushed a commit
that referenced
this pull request
Aug 4, 2023
terencechain
added a commit
that referenced
this pull request
Aug 16, 2023
kasey
pushed a commit
that referenced
this pull request
Aug 21, 2023
kasey
pushed a commit
that referenced
this pull request
Aug 22, 2023
kasey
pushed a commit
that referenced
this pull request
Aug 22, 2023
kasey
pushed a commit
that referenced
this pull request
Aug 22, 2023
kasey
pushed a commit
that referenced
this pull request
Aug 23, 2023
kasey
pushed a commit
that referenced
this pull request
Aug 23, 2023
kasey
pushed a commit
that referenced
this pull request
Aug 23, 2023
kasey
added a commit
that referenced
this pull request
Aug 24, 2023
kasey
pushed a commit
that referenced
this pull request
Aug 24, 2023
prestonvanloon
pushed a commit
that referenced
this pull request
Aug 24, 2023
prestonvanloon
pushed a commit
that referenced
this pull request
Aug 24, 2023
james-prysm
pushed a commit
that referenced
this pull request
Aug 25, 2023
prestonvanloon
pushed a commit
that referenced
this pull request
Aug 30, 2023
prestonvanloon
pushed a commit
that referenced
this pull request
Aug 31, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add deneb block to consensus types
executionPayloadHeaderDenebimplementationexecutionPayloadDenebimplementationExcessDataGasacross allexecutionPayloadXYZimplementationsPayloadToHeaderDeneb