Return SignedBeaconBlock from ReadOnlySignedBeaconBlock.Copy (#13386)

This commit is contained in:
Radosław Kapka 2023-12-28 09:55:45 +01:00 committed by GitHub
parent e70b606e78
commit 49c16f1a71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ func (b *SignedBeaconBlock) IsNil() bool {
} }
// Copy performs a deep copy of the signed beacon block object. // 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 { if b == nil {
return nil, nil return nil, nil
} }

View File

@ -16,7 +16,7 @@ type ReadOnlySignedBeaconBlock interface {
Block() ReadOnlyBeaconBlock Block() ReadOnlyBeaconBlock
Signature() [field_params.BLSSignatureLength]byte Signature() [field_params.BLSSignatureLength]byte
IsNil() bool IsNil() bool
Copy() (ReadOnlySignedBeaconBlock, error) Copy() (SignedBeaconBlock, error)
Proto() (proto.Message, error) Proto() (proto.Message, error)
PbGenericBlock() (*ethpb.GenericSignedBeaconBlock, error) PbGenericBlock() (*ethpb.GenericSignedBeaconBlock, error)
PbPhase0Block() (*ethpb.SignedBeaconBlock, error) PbPhase0Block() (*ethpb.SignedBeaconBlock, error)

View File

@ -34,7 +34,7 @@ func (m SignedBeaconBlock) IsNil() bool {
return m.BeaconBlock == nil || m.Block().IsNil() return m.BeaconBlock == nil || m.Block().IsNil()
} }
func (SignedBeaconBlock) Copy() (interfaces.ReadOnlySignedBeaconBlock, error) { func (SignedBeaconBlock) Copy() (interfaces.SignedBeaconBlock, error) {
panic("implement me") panic("implement me")
} }