mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 11:57:18 +00:00
d17996f8b0
* Update V3 from V4 * Fix build v3 -> v4 * Update ssz * Update beacon_chain.pb.go * Fix formatter import * Update update-mockgen.sh comment to v4 * Fix conflicts. Pass build and tests * Fix test
30 lines
1.2 KiB
Go
30 lines
1.2 KiB
Go
// Package node defines a gRPC node service implementation, providing
|
|
// useful endpoints for checking a node's sync status, peer info,
|
|
// genesis data, and version information.
|
|
package node
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/blockchain"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/db"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/execution"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/p2p"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/sync"
|
|
"google.golang.org/grpc"
|
|
)
|
|
|
|
// Server defines a server implementation of the gRPC Node service,
|
|
// providing RPC endpoints for verifying a beacon node's sync status, genesis and
|
|
// version information.
|
|
type Server struct {
|
|
SyncChecker sync.Checker
|
|
OptimisticModeFetcher blockchain.OptimisticModeFetcher
|
|
Server *grpc.Server
|
|
BeaconDB db.ReadOnlyDatabase
|
|
PeersFetcher p2p.PeersProvider
|
|
PeerManager p2p.PeerManager
|
|
MetadataProvider p2p.MetadataProvider
|
|
GenesisTimeFetcher blockchain.TimeFetcher
|
|
HeadFetcher blockchain.HeadFetcher
|
|
ExecutionChainInfoFetcher execution.ChainInfoFetcher
|
|
}
|