aggregator

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: GPL-3.0 Imports: 14 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 {
	BeaconDB    db.Database
	HeadFetcher blockchain.HeadFetcher
	SyncChecker sync.Checker
	AttPool     attestations.Pool
	P2p         p2p.Broadcaster
}

Server defines a server implementation of the gRPC aggregator service.

func (*Server) SubmitAggregateAndProof

func (as *Server) SubmitAggregateAndProof(ctx context.Context, req *pb.AggregationRequest) (*pb.AggregationResponse, error)

SubmitAggregateAndProof is called by a validator when its assigned to be an aggregator. The beacon node will broadcast aggregated attestation and proof on the aggregator's behavior.

Jump to

Keyboard shortcuts

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