2021-07-22 17:13:18 +00:00
|
|
|
// Package debug defines a gRPC beacon service implementation,
|
2021-08-19 18:00:57 +00:00
|
|
|
// following the official API standards https://ethereum.github.io/beacon-apis/#/.
|
2021-02-22 22:48:49 +00:00
|
|
|
// This package includes the beacon and config endpoints.
|
2021-07-02 15:54:52 +00:00
|
|
|
package debug
|
2021-02-22 22:48:49 +00:00
|
|
|
|
|
|
|
import (
|
2022-08-16 12:20:13 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/v3/beacon-chain/blockchain"
|
|
|
|
"github.com/prysmaticlabs/prysm/v3/beacon-chain/db"
|
|
|
|
"github.com/prysmaticlabs/prysm/v3/beacon-chain/rpc/statefetcher"
|
2021-02-22 22:48:49 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// Server defines a server implementation of the gRPC Beacon Chain service,
|
2021-06-26 19:00:33 +00:00
|
|
|
// providing RPC endpoints to access data relevant to the Ethereum Beacon Chain.
|
2021-02-22 22:48:49 +00:00
|
|
|
type Server struct {
|
2022-05-12 17:23:45 +00:00
|
|
|
BeaconDB db.ReadOnlyDatabase
|
|
|
|
HeadFetcher blockchain.HeadFetcher
|
|
|
|
StateFetcher statefetcher.Fetcher
|
|
|
|
OptimisticModeFetcher blockchain.OptimisticModeFetcher
|
2022-08-26 14:54:32 +00:00
|
|
|
ForkFetcher blockchain.ForkFetcher
|
2021-02-22 22:48:49 +00:00
|
|
|
}
|