Documentation ¶
Overview ¶
Package debug defines a gRPC server implementation of a debugging service which allows for helpful endpoints to debug a beacon node at runtime, this server is gated behind the feature flag --enable-debug-rpc-endpoints.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { GenesisTimeFetcher blockchain.TimeFetcher StateGen *stategen.State }
Server defines a server implementation of the gRPC Debug service, providing RPC endpoints for runtime debugging of a node, this server is gated behind the feature flag --enable-debug-rpc-endpoints.
func (*Server) GetBeaconState ¶
func (ds *Server) GetBeaconState( ctx context.Context, req *pbrpc.BeaconStateRequest, ) (*pbp2p.BeaconState, error)
GetBeaconState retrieves a beacon state from the beacon node by either a slot or block root.
func (*Server) SetLoggingLevel ¶
func (ds *Server) SetLoggingLevel(ctx context.Context, req *pbrpc.LoggingLevelRequest) (*ptypes.Empty, error)
SetLoggingLevel of a beacon node according to a request type, either INFO, DEBUG, or TRACE.
Click to show internal directories.
Click to hide internal directories.