mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-29 06:37:17 +00:00
4aa7ebc2b7
* Hookup voluntary exits pool * Merge refs/heads/master into wire-voluntary-exits * Merge refs/heads/master into wire-voluntary-exits * Merge refs/heads/master into wire-voluntary-exits * Merge refs/heads/master into wire-voluntary-exits * Merge refs/heads/master into wire-voluntary-exits * Merge refs/heads/master into wire-voluntary-exits * fix tests * Merge branch 'wire-voluntary-exits' of github.com:prysmaticlabs/prysm into wire-voluntary-exits * Merge refs/heads/master into wire-voluntary-exits * gofmt * Merge branch 'wire-voluntary-exits' of github.com:prysmaticlabs/prysm into wire-voluntary-exits * gofmt * gaz * Merge refs/heads/master into wire-voluntary-exits
28 lines
756 B
Go
28 lines
756 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.Validators, 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
|
|
}
|