mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
feat: add validator blob signing (#12730)
This commit is contained in:
committed by
Preston Van Loon
parent
6314f7fcbf
commit
96a9a6fc16
@@ -26,6 +26,10 @@ func NewSignedBeaconBlockFromGeneric(gb *eth.GenericSignedBeaconBlock) (interfac
|
||||
return blocks.NewSignedBeaconBlock(bb.Capella)
|
||||
case *eth.GenericSignedBeaconBlock_BlindedCapella:
|
||||
return blocks.NewSignedBeaconBlock(bb.BlindedCapella)
|
||||
case *eth.GenericSignedBeaconBlock_Deneb:
|
||||
return blocks.NewSignedBeaconBlock(bb.Deneb.Block)
|
||||
case *eth.GenericSignedBeaconBlock_BlindedDeneb:
|
||||
return blocks.NewSignedBeaconBlock(bb.BlindedDeneb.Block)
|
||||
// Generic Signed Beacon Block Deneb can't be used here as it is not a block, but block content with blobs
|
||||
default:
|
||||
return nil, errors.Wrapf(blocks.ErrUnsupportedSignedBeaconBlock, "unable to create block from type %T", gb)
|
||||
|
||||
Reference in New Issue
Block a user