mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-27 05:38:55 +00:00
d32493d43b
* ensure exits are not for an already exited validator
28 lines
745 B
Go
28 lines
745 B
Go
package sync
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/gogo/protobuf/proto"
|
|
ethpb "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1"
|
|
)
|
|
|
|
func (r *Service) voluntaryExitSubscriber(ctx context.Context, msg proto.Message) error {
|
|
s, err := r.chain.HeadState(ctx)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
r.exitPool.InsertVoluntaryExit(ctx, s, msg.(*ethpb.SignedVoluntaryExit))
|
|
return nil
|
|
}
|
|
|
|
func (r *Service) attesterSlashingSubscriber(ctx context.Context, msg proto.Message) error {
|
|
// TODO(#3259): Requires handlers in operations service to be implemented.
|
|
return nil
|
|
}
|
|
|
|
func (r *Service) proposerSlashingSubscriber(ctx context.Context, msg proto.Message) error {
|
|
// TODO(#3259): Requires handlers in operations service to be implemented.
|
|
return nil
|
|
}
|