mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-10 11:41:21 +00:00
ac4483417d
Co-authored-by: Nishant Das <nishdas93@gmail.com>
17 lines
502 B
Go
17 lines
502 B
Go
package validator
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/v3/beacon-chain/state"
|
|
"github.com/prysmaticlabs/prysm/v3/consensus-types/primitives"
|
|
ethpb "github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1"
|
|
)
|
|
|
|
func (vs *Server) getExits(head state.BeaconState, slot primitives.Slot) []*ethpb.SignedVoluntaryExit {
|
|
exits, err := vs.ExitPool.ExitsForInclusion(head, slot)
|
|
if err != nil {
|
|
log.WithError(err).Error("Could not get exits")
|
|
return []*ethpb.SignedVoluntaryExit{}
|
|
}
|
|
return exits
|
|
}
|