mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-12 04:30:04 +00:00
df33ce3309
* slasher beacon node changes * remaining beacon node items * moar changes * gaz * flag fix * rem slashable * builds * imports * fix up * pruning faster test * deepsource * fix wrong item * node node feature flags * broken test * preston review * more preston comments * comment Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
15 lines
409 B
Go
15 lines
409 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
|
|
CheckBlockSafety(ctx context.Context, blockHeader *eth.SignedBeaconBlockHeader) bool
|
|
Status() error
|
|
}
|