mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 17:22:18 +00:00
f4d6e91e72
* Add spans and remove unused Server fields * Remove more
34 lines
1.4 KiB
Go
34 lines
1.4 KiB
Go
// Package beaconv1 defines a gRPC beacon service implementation,
|
|
// following the official API standards https://ethereum.github.io/eth2.0-APIs/#/.
|
|
// This package includes the beacon and config endpoints.
|
|
package beaconv1
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/blockchain"
|
|
blockfeed "github.com/prysmaticlabs/prysm/beacon-chain/core/feed/block"
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/db"
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/operations/attestations"
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/operations/slashings"
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/operations/voluntaryexits"
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/p2p"
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/rpc/statefetcher"
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/state/stategen"
|
|
)
|
|
|
|
// Server defines a server implementation of the gRPC Beacon Chain service,
|
|
// providing RPC endpoints to access data relevant to the Ethereum 2.0 phase 0
|
|
// beacon chain.
|
|
type Server struct {
|
|
BeaconDB db.ReadOnlyDatabase
|
|
ChainInfoFetcher blockchain.ChainInfoFetcher
|
|
GenesisTimeFetcher blockchain.TimeFetcher
|
|
BlockReceiver blockchain.BlockReceiver
|
|
BlockNotifier blockfeed.Notifier
|
|
Broadcaster p2p.Broadcaster
|
|
AttestationsPool attestations.Pool
|
|
SlashingsPool slashings.PoolManager
|
|
VoluntaryExitsPool voluntaryexits.PoolManager
|
|
StateGenService stategen.StateManager
|
|
StateFetcher statefetcher.StateProvider
|
|
}
|