mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-26 13:18:57 +00:00
a867f6175b
* external slasher protection fails loudly * Merge refs/heads/master into external-slasher-fail-loud * Merge refs/heads/master into external-slasher-fail-loud * Merge refs/heads/master into external-slasher-fail-loud * Merge refs/heads/master into external-slasher-fail-loud * Merge refs/heads/master into external-slasher-fail-loud * Merge refs/heads/master into external-slasher-fail-loud * Merge refs/heads/master into external-slasher-fail-loud * Merge refs/heads/master into external-slasher-fail-loud * Merge refs/heads/master into external-slasher-fail-loud * Merge refs/heads/master into external-slasher-fail-loud * Merge refs/heads/master into external-slasher-fail-loud * Merge refs/heads/master into external-slasher-fail-loud * Merge refs/heads/master into external-slasher-fail-loud * Merge refs/heads/master into external-slasher-fail-loud * Merge refs/heads/master into external-slasher-fail-loud * Merge refs/heads/master into external-slasher-fail-loud * Merge refs/heads/master into external-slasher-fail-loud * Merge refs/heads/master into external-slasher-fail-loud * Merge refs/heads/master into external-slasher-fail-loud * Merge refs/heads/master into external-slasher-fail-loud * Merge refs/heads/master into external-slasher-fail-loud * Merge branch 'master' of github.com:prysmaticlabs/prysm into external-slasher-fail-loud * Merge refs/heads/master into external-slasher-fail-loud * Merge refs/heads/master into external-slasher-fail-loud * Merge refs/heads/master into external-slasher-fail-loud * ivan feedback * Merge branch 'external-slasher-fail-loud' of github.com:prysmaticlabs/prysm into external-slasher-fail-loud * lint fix * ivan feedback
17 lines
578 B
Go
17 lines
578 B
Go
package slashingprotection
|
|
|
|
import (
|
|
"context"
|
|
|
|
eth "github.com/prysmaticlabs/ethereumapis/eth/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
|
|
Status() error
|
|
}
|