mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 11:32:09 +00:00
Return SignedBeaconBlock from ReadOnlySignedBeaconBlock.Copy (#13386)
This commit is contained in:
parent
e70b606e78
commit
49c16f1a71
@ -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
|
||||||
}
|
}
|
||||||
|
@ -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)
|
||||||
|
@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user