mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-24 20:37:17 +00:00
19 lines
518 B
Go
19 lines
518 B
Go
package sync
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/pkg/errors"
|
|
ethpb "github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1"
|
|
"google.golang.org/protobuf/proto"
|
|
)
|
|
|
|
func (s *Service) blsToExecutionChangeSubscriber(ctx context.Context, msg proto.Message) error {
|
|
blsMsg, ok := msg.(*ethpb.SignedBLSToExecutionChange)
|
|
if !ok {
|
|
return errors.Errorf("incorrect type of message received, wanted %T but got %T", ðpb.SignedBLSToExecutionChange{}, msg)
|
|
}
|
|
s.cfg.blsToExecPool.InsertBLSToExecChange(blsMsg)
|
|
return nil
|
|
}
|