BeaconBlockContainerToSignedBeaconBlock: Add Fulu. (#15940)

This commit is contained in:
Manu NALEPA
2025-11-02 00:18:42 +01:00
committed by GitHub
parent 040661bd68
commit b2a9db0826
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
### Ignored
- `BeaconBlockContainerToSignedBeaconBlock`: Add Fulu.

View File

@@ -640,6 +640,10 @@ func BuildSignedBeaconBlockFromExecutionPayload(blk interfaces.ReadOnlySignedBea
// This is particularly useful for using the values from API calls.
func BeaconBlockContainerToSignedBeaconBlock(obj *eth.BeaconBlockContainer) (interfaces.ReadOnlySignedBeaconBlock, error) {
switch obj.Block.(type) {
case *eth.BeaconBlockContainer_BlindedFuluBlock:
return NewSignedBeaconBlock(obj.GetBlindedFuluBlock())
case *eth.BeaconBlockContainer_FuluBlock:
return NewSignedBeaconBlock(obj.GetFuluBlock())
case *eth.BeaconBlockContainer_BlindedElectraBlock:
return NewSignedBeaconBlock(obj.GetBlindedElectraBlock())
case *eth.BeaconBlockContainer_ElectraBlock: