mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
BeaconBlockContainerToSignedBeaconBlock: Add Fulu. (#15940)
This commit is contained in:
2
changelog/manu-factory.md
Normal file
2
changelog/manu-factory.md
Normal file
@@ -0,0 +1,2 @@
|
||||
### Ignored
|
||||
- `BeaconBlockContainerToSignedBeaconBlock`: Add Fulu.
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user