mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 11:57:18 +00:00
17 lines
575 B
Go
17 lines
575 B
Go
package iface
|
|
|
|
import (
|
|
"context"
|
|
|
|
eth "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
|
|
)
|
|
|
|
// Protector interface defines the methods of the service that provides slashing protection.
|
|
type Protector interface {
|
|
CheckAttestationSafety(ctx context.Context, attestation *eth.IndexedAttestation) bool
|
|
CommitAttestation(ctx context.Context, attestation *eth.IndexedAttestation) bool
|
|
CheckBlockSafety(ctx context.Context, blockHeader *eth.BeaconBlockHeader) bool
|
|
CommitBlock(ctx context.Context, blockHeader *eth.SignedBeaconBlockHeader) (bool, error)
|
|
Status() error
|
|
}
|