mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
Return SignedBeaconBlock from ReadOnlySignedBeaconBlock.Copy (#13386)
This commit is contained in:
@@ -42,7 +42,7 @@ func (b *SignedBeaconBlock) IsNil() bool {
|
||||
}
|
||||
|
||||
// Copy performs a deep copy of the signed beacon block object.
|
||||
func (b *SignedBeaconBlock) Copy() (interfaces.ReadOnlySignedBeaconBlock, error) {
|
||||
func (b *SignedBeaconBlock) Copy() (interfaces.SignedBeaconBlock, error) {
|
||||
if b == nil {
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ type ReadOnlySignedBeaconBlock interface {
|
||||
Block() ReadOnlyBeaconBlock
|
||||
Signature() [field_params.BLSSignatureLength]byte
|
||||
IsNil() bool
|
||||
Copy() (ReadOnlySignedBeaconBlock, error)
|
||||
Copy() (SignedBeaconBlock, error)
|
||||
Proto() (proto.Message, error)
|
||||
PbGenericBlock() (*ethpb.GenericSignedBeaconBlock, error)
|
||||
PbPhase0Block() (*ethpb.SignedBeaconBlock, error)
|
||||
|
||||
@@ -34,7 +34,7 @@ func (m SignedBeaconBlock) IsNil() bool {
|
||||
return m.BeaconBlock == nil || m.Block().IsNil()
|
||||
}
|
||||
|
||||
func (SignedBeaconBlock) Copy() (interfaces.ReadOnlySignedBeaconBlock, error) {
|
||||
func (SignedBeaconBlock) Copy() (interfaces.SignedBeaconBlock, error) {
|
||||
panic("implement me")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user