mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
Rename block interfaces (#11975)
This commit is contained in:
@@ -266,7 +266,7 @@ func (v *validator) signRandaoReveal(ctx context.Context, pubKey [fieldparams.BL
|
||||
|
||||
// Sign block with proposer domain and private key.
|
||||
// Returns the signature, block signing root, and any error.
|
||||
func (v *validator) signBlock(ctx context.Context, pubKey [fieldparams.BLSPubkeyLength]byte, epoch primitives.Epoch, slot primitives.Slot, b interfaces.BeaconBlock) ([]byte, [32]byte, error) {
|
||||
func (v *validator) signBlock(ctx context.Context, pubKey [fieldparams.BLSPubkeyLength]byte, epoch primitives.Epoch, slot primitives.Slot, b interfaces.ReadOnlyBeaconBlock) ([]byte, [32]byte, error) {
|
||||
domain, err := v.domainData(ctx, epoch, params.BeaconConfig().DomainBeaconProposer[:])
|
||||
if err != nil {
|
||||
return nil, [32]byte{}, errors.Wrap(err, domainDataErr)
|
||||
|
||||
Reference in New Issue
Block a user