slasher

package
v0.0.0-...-3bf8caa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2024 License: Apache-2.0, GPL-3.0, MIT Imports: 6 Imported by: 0

Documentation

Overview

Package slasher defines a gRPC server implementation of a slasher service which allows for checking if attestations or blocks are slashable.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	SlashingChecker slasherservice.SlashingChecker
}

Server defines a server implementation of the gRPC slasher service.

func (*Server) HighestAttestations

HighestAttestations returns the highest source and target epochs attested for validator indices that have been observed by slasher.

func (*Server) IsSlashableAttestation

func (s *Server) IsSlashableAttestation(
	ctx context.Context, req *ethpb.IndexedAttestation,
) (*ethpb.AttesterSlashingResponse, error)

IsSlashableAttestation returns an attester slashing if an input attestation is found to be slashable.

func (*Server) IsSlashableBlock

IsSlashableBlock returns a proposer slashing if an input signed beacon block header is found to be slashable.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL