Documentation ¶
Index ¶
- type MockSlashingChecker
- func (s *MockSlashingChecker) HighestAttestations(_ context.Context, indices []primitives.ValidatorIndex) ([]*ethpb.HighestAttestation, error)
- func (s *MockSlashingChecker) IsSlashableAttestation(_ context.Context, _ *ethpb.IndexedAttestation) ([]*ethpb.AttesterSlashing, error)
- func (s *MockSlashingChecker) IsSlashableBlock(_ context.Context, _ *ethpb.SignedBeaconBlockHeader) (*ethpb.ProposerSlashing, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSlashingChecker ¶
type MockSlashingChecker struct { AttesterSlashingFound bool ProposerSlashingFound bool HighestAtts map[primitives.ValidatorIndex]*ethpb.HighestAttestation }
func (*MockSlashingChecker) HighestAttestations ¶
func (s *MockSlashingChecker) HighestAttestations( _ context.Context, indices []primitives.ValidatorIndex, ) ([]*ethpb.HighestAttestation, error)
func (*MockSlashingChecker) IsSlashableAttestation ¶
func (s *MockSlashingChecker) IsSlashableAttestation(_ context.Context, _ *ethpb.IndexedAttestation) ([]*ethpb.AttesterSlashing, error)
func (*MockSlashingChecker) IsSlashableBlock ¶
func (s *MockSlashingChecker) IsSlashableBlock(_ context.Context, _ *ethpb.SignedBeaconBlockHeader) (*ethpb.ProposerSlashing, error)
Click to show internal directories.
Click to hide internal directories.