github.com/prysmaticlabs/prysm@v1.4.4/slasher/detection/proposals/iface/iface.go (about) 1 // Package iface defines an interface for a double-proposal detector struct. 2 package iface 3 4 import ( 5 "context" 6 7 ethpb "github.com/prysmaticlabs/prysm/proto/eth/v1alpha1" 8 ) 9 10 // ProposalsDetector defines an interface for different implementations. 11 type ProposalsDetector interface { 12 DetectDoublePropose(ctx context.Context, incomingBlk *ethpb.SignedBeaconBlockHeader) (*ethpb.ProposerSlashing, error) 13 DetectDoubleProposeNoUpdate(ctx context.Context, incomingBlk *ethpb.BeaconBlockHeader) (bool, error) 14 }