Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { P2p p2p.Broadcaster BeaconDB db.Database OperationsHandler operations.Handler AttReceiver blockchain.AttestationReceiver HeadFetcher blockchain.HeadFetcher AttestationCache *cache.AttestationCache SyncChecker sync.Checker }
Server defines a server implementation of the gRPC Attester service, providing RPC methods for validators acting as attesters to broadcast votes on beacon blocks.
func (*Server) RequestAttestation ¶
func (as *Server) RequestAttestation(ctx context.Context, req *pb.AttestationRequest) (*ethpb.AttestationData, error)
RequestAttestation requests that the beacon node produce an IndexedAttestation, with a blank signature field, which the validator will then sign.
func (*Server) SubmitAttestation ¶
func (as *Server) SubmitAttestation(ctx context.Context, att *ethpb.Attestation) (*pb.AttestResponse, error)
SubmitAttestation is a function called by an attester in a sharding validator to vote on a block via an attestation object as defined in the Ethereum Serenity specification.
Click to show internal directories.
Click to hide internal directories.