mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
34f507f4b2
* impl * protos * tests * register endpoint * test fix * test fix * remove path * more test fixes * cleanup * bzl --------- Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
52 lines
2.6 KiB
Go
52 lines
2.6 KiB
Go
// Package beacon 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 beacon
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/blockchain"
|
|
blockfeed "github.com/prysmaticlabs/prysm/v4/beacon-chain/core/feed/block"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/core/feed/operation"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/db"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/execution"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/operations/attestations"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/operations/blstoexec"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/operations/slashings"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/operations/voluntaryexits"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/p2p"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/rpc/core"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/rpc/lookup"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/state/stategen"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/sync"
|
|
eth "github.com/prysmaticlabs/prysm/v4/proto/prysm/v1alpha1"
|
|
)
|
|
|
|
// 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
|
|
ChainInfoFetcher blockchain.ChainInfoFetcher
|
|
GenesisTimeFetcher blockchain.TimeFetcher
|
|
BlockReceiver blockchain.BlockReceiver
|
|
BlockNotifier blockfeed.Notifier
|
|
OperationNotifier operation.Notifier
|
|
Broadcaster p2p.Broadcaster
|
|
AttestationsPool attestations.Pool
|
|
SlashingsPool slashings.PoolManager
|
|
VoluntaryExitsPool voluntaryexits.PoolManager
|
|
StateGenService stategen.StateManager
|
|
Stater lookup.Stater
|
|
Blocker lookup.Blocker
|
|
HeadFetcher blockchain.HeadFetcher
|
|
TimeFetcher blockchain.TimeFetcher
|
|
OptimisticModeFetcher blockchain.OptimisticModeFetcher
|
|
V1Alpha1ValidatorServer eth.BeaconNodeValidatorServer
|
|
SyncChecker sync.Checker
|
|
CanonicalHistory *stategen.CanonicalHistory
|
|
ExecutionPayloadReconstructor execution.ExecutionPayloadReconstructor
|
|
FinalizationFetcher blockchain.FinalizationFetcher
|
|
BLSChangesPool blstoexec.PoolManager
|
|
ForkchoiceFetcher blockchain.ForkchoiceFetcher
|
|
CoreService *core.Service
|
|
}
|