mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-31 23:41:22 +00:00
6158a648cd
* rem slasher proto * with cache * delete old code * moving to bytes.go fix traces * moving to bytes.go fix traces * raul feedback * raul feedback * begin * add eviction test * ivan feedback * ivan feedback * test is running * some comment improvements * test included for bytes and bool * import * cleanup * tests pass * fill in all fields in test * gaz * fix integration * gaz + goimports * fix service.go * remove sleep * cleanup Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
22 lines
535 B
Go
22 lines
535 B
Go
package iface
|
|
|
|
import (
|
|
"context"
|
|
|
|
ethpb "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1"
|
|
"github.com/prysmaticlabs/prysm/slasher/detection/attestations/types"
|
|
)
|
|
|
|
// SpanDetector defines an interface for Spanners to follow to allow mocks.
|
|
type SpanDetector interface {
|
|
// Read functions.
|
|
DetectSlashingForValidator(
|
|
ctx context.Context,
|
|
validatorIdx uint64,
|
|
attData *ethpb.AttestationData,
|
|
) (*types.DetectionResult, error)
|
|
|
|
// Write functions.
|
|
UpdateSpans(ctx context.Context, att *ethpb.IndexedAttestation) error
|
|
}
|