prysm-pulse/slasher/detection/proposals/iface/iface.go

13 lines
328 B
Go
Raw Normal View History

package iface
import (
"context"
ethpb "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1"
)
// ProposalsDetector defines an interface for different implementations.
type ProposalsDetector interface {
DetectDoublePropose(ctx context.Context, incomingBlk *ethpb.SignedBeaconBlockHeader) (*ethpb.ProposerSlashing, error)
}