debug

package
v5.0.1-rc.4 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

Package debug defines a gRPC beacon service implementation, following the official API standards https://ethereum.github.io/beacon-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
	Stater                lookup.Stater
	OptimisticModeFetcher blockchain.OptimisticModeFetcher
	ForkFetcher           blockchain.ForkFetcher
	ForkchoiceFetcher     blockchain.ForkchoiceFetcher
	FinalizationFetcher   blockchain.FinalizationFetcher
	ChainInfoFetcher      blockchain.ChainInfoFetcher
}

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) GetBeaconStateV2

func (s *Server) GetBeaconStateV2(w http.ResponseWriter, r *http.Request)

GetBeaconStateV2 returns the full beacon state for a given state ID.

func (*Server) GetForkChoice

func (s *Server) GetForkChoice(w http.ResponseWriter, r *http.Request)

GetForkChoice returns a dump fork choice store.

func (*Server) GetForkChoiceHeadsV2

func (s *Server) GetForkChoiceHeadsV2(w http.ResponseWriter, r *http.Request)

GetForkChoiceHeadsV2 retrieves the leaves of the current fork choice tree.

Jump to

Keyboard shortcuts

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