mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-11 04:00:05 +00:00
15 lines
508 B
Go
15 lines
508 B
Go
// Package iface defines an interface for a double-proposal detector struct.
|
|
package iface
|
|
|
|
import (
|
|
"context"
|
|
|
|
ethpb "github.com/prysmaticlabs/prysm/proto/prysm/v1alpha1"
|
|
)
|
|
|
|
// ProposalsDetector defines an interface for different implementations.
|
|
type ProposalsDetector interface {
|
|
DetectDoublePropose(ctx context.Context, incomingBlk *ethpb.SignedBeaconBlockHeader) (*ethpb.ProposerSlashing, error)
|
|
DetectDoubleProposeNoUpdate(ctx context.Context, incomingBlk *ethpb.BeaconBlockHeader) (bool, error)
|
|
}
|