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 (
|
2021-04-14 17:01:24 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/blockchain"
|
2021-02-22 22:48:49 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/db"
|
2021-03-29 21:04:35 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/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 {
|
2021-03-29 21:04:35 +00:00
|
|
|
BeaconDB db.ReadOnlyDatabase
|
2021-04-14 17:01:24 +00:00
|
|
|
HeadFetcher blockchain.HeadFetcher
|
2021-03-29 21:04:35 +00:00
|
|
|
StateFetcher statefetcher.Fetcher
|
2021-02-22 22:48:49 +00:00
|
|
|
}
|