debug

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package debugv1 defines a gRPC beacon service implementation, following the official API standards https://ethereum.github.io/eth2.0-APIs/#/. This package includes the beacon and config endpoints.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	BeaconDB     db.ReadOnlyDatabase
	HeadFetcher  blockchain.HeadFetcher
	StateFetcher statefetcher.Fetcher
}

Server defines a server implementation of the gRPC Beacon Chain service, providing RPC endpoints to access data relevant to the Ethereum Beacon Chain.

func (*Server) GetBeaconState

func (ds *Server) GetBeaconState(ctx context.Context, req *ethpb.StateRequest) (*ethpb.BeaconStateResponse, error)

GetBeaconState returns the full beacon state for a given state id.

func (*Server) GetBeaconStateSSZ

func (ds *Server) GetBeaconStateSSZ(ctx context.Context, req *ethpb.StateRequest) (*ethpb.BeaconStateSSZResponse, error)

GetBeaconStateSSZ returns the SSZ-serialized version of the full beacon state object for given stateId.

func (*Server) ListForkChoiceHeads

func (ds *Server) ListForkChoiceHeads(ctx context.Context, _ *emptypb.Empty) (*ethpb.ForkChoiceHeadsResponse, error)

ListForkChoiceHeads retrieves the fork choice leaves for the current head.

Jump to

Keyboard shortcuts

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