mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 03:01:19 +00:00
797cc360c7
* Isolate Forkchoice to blockchain package * Nishant's feedback * Terence's feedback * Nishant saving the day
24 lines
984 B
Go
24 lines
984 B
Go
// 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.
|
|
package debug
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/blockchain"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/db"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/rpc/statefetcher"
|
|
)
|
|
|
|
// Server defines a server implementation of the gRPC Beacon Chain service,
|
|
// providing RPC endpoints to access data relevant to the Ethereum Beacon Chain.
|
|
type Server struct {
|
|
BeaconDB db.ReadOnlyDatabase
|
|
HeadFetcher blockchain.HeadFetcher
|
|
StateFetcher statefetcher.Fetcher
|
|
OptimisticModeFetcher blockchain.OptimisticModeFetcher
|
|
ForkFetcher blockchain.ForkFetcher
|
|
ForkchoiceFetcher blockchain.ForkchoiceFetcher
|
|
FinalizationFetcher blockchain.FinalizationFetcher
|
|
ChainInfoFetcher blockchain.ChainInfoFetcher
|
|
}
|