Conversation
b037b20 to
7c00886
Compare
0b3075a to
5c8bcee
Compare
1afc93c to
f7774b4
Compare
f7774b4 to
a2d3db0
Compare
| // Error is returned if the input is not type protobuf beacon state. | ||
| func ProtobufBeaconStateFulu(s interface{}) (*ethpb.BeaconStateFulu, error) { | ||
| pbState, ok := s.(*ethpb.BeaconStateFulu) | ||
| func ProtobufBeaconStateFulu(s interface{}) (*ethpb.BeaconStateElectra, error) { |
There was a problem hiding this comment.
Is this function needed? Can't we alias ProtobufBeaconStateElectra?
|
|
||
| message SignedBlindedBeaconBlockFulu { | ||
| // The unsigned blinded beacon block itself. | ||
| BlindedBeaconBlockFulu message = 1; |
There was a problem hiding this comment.
I can't find the definition for some reason, but is BlindedBeaconBlockFulu needed? You did remove the full block
There was a problem hiding this comment.
The definition of BlindedBeaconBlockFulu is here.
There was a problem hiding this comment.
- In
produceBlockV3, to produce a non blinded block, we need to compare type against*eth.GenericBeaconBlock_Fulu. *eth.GenericBeaconBlock_Fuluis created here and is of typeBeaconBlockContentsFulu(and not of typeBeaconBlockFulu).
- In
produceBlockV3, to produce a blinded block, we need to compare type against*eth.GenericBeaconBlock_BlindedFulu. *eth.GenericBeaconBlock_BlindedFuluis created here and is of typeBlindedBeaconBlockFulu.
==> I need both BlindedBeaconBlockFulu and BeaconBlockContentsFulu, but I don't need BlindedBeaconBlockFulu.
There was a problem hiding this comment.
We do all this to set version.String(version.Fulu)) on Fulu blocks.
(Even if the shape of the struct is exactly the same than Electra block.)
| ExecutionRequests *ExecutionRequests `json:"execution_requests"` | ||
| } | ||
|
|
||
| type BlindedBeaconBlockFulu struct { |
There was a problem hiding this comment.
Is this needed? Se comment in proto/prysm/v1alpha1/beacon_block.proto
* Remove Fulu block and state. * Add missing tests. * Alias `ProtobufBeaconStateFulu` to `ProtobufBeaconStateElectra`
* Remove Fulu block and state. * Add missing tests. * Alias `ProtobufBeaconStateFulu` to `ProtobufBeaconStateElectra`
What type of PR is this?
Other
What does this PR do? Why is it needed?
Remove as much as Fulu proto definitions. (Including Fulu block and state.)
How I realized this PR:
blk.Versionreturnedelectrafor a Fulu block.3.(being able to differentiate versions), I had to re-add some Fulu structs, even if they are the same than the Electra ones. Only the minimal amount of structs have been added.Acknowledgements