attester

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2019 License: GPL-3.0 Imports: 17 Imported by: 0

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.

Jump to

Keyboard shortcuts

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