mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 21:07:18 +00:00
d077483577
* v3 import renamings * tidy * fmt * rev * Update beacon-chain/core/epoch/precompute/reward_penalty_test.go * Update beacon-chain/core/helpers/validators_test.go * Update beacon-chain/db/alias.go * Update beacon-chain/db/alias.go * Update beacon-chain/db/alias.go * Update beacon-chain/db/iface/BUILD.bazel * Update beacon-chain/db/kv/kv.go * Update beacon-chain/db/kv/state.go * Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go * Update beacon-chain/rpc/prysm/v1alpha1/validator/attester_test.go * Update beacon-chain/sync/initial-sync/service.go * fix deps * fix bad replacements * fix bad replacements * change back * gohashtree version * fix deps Co-authored-by: Nishant Das <nishdas93@gmail.com> Co-authored-by: Potuz <potuz@prysmaticlabs.com>
52 lines
2.4 KiB
Go
52 lines
2.4 KiB
Go
// Package beacon defines a gRPC beacon service implementation, providing
|
|
// useful endpoints for checking fetching chain-specific data such as
|
|
// blocks, committees, validators, assignments, and more.
|
|
package beacon
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
|
|
"github.com/prysmaticlabs/prysm/v3/beacon-chain/blockchain"
|
|
"github.com/prysmaticlabs/prysm/v3/beacon-chain/cache/depositcache"
|
|
blockfeed "github.com/prysmaticlabs/prysm/v3/beacon-chain/core/feed/block"
|
|
"github.com/prysmaticlabs/prysm/v3/beacon-chain/core/feed/operation"
|
|
statefeed "github.com/prysmaticlabs/prysm/v3/beacon-chain/core/feed/state"
|
|
"github.com/prysmaticlabs/prysm/v3/beacon-chain/db"
|
|
"github.com/prysmaticlabs/prysm/v3/beacon-chain/execution"
|
|
"github.com/prysmaticlabs/prysm/v3/beacon-chain/operations/attestations"
|
|
"github.com/prysmaticlabs/prysm/v3/beacon-chain/operations/slashings"
|
|
"github.com/prysmaticlabs/prysm/v3/beacon-chain/p2p"
|
|
"github.com/prysmaticlabs/prysm/v3/beacon-chain/state/stategen"
|
|
"github.com/prysmaticlabs/prysm/v3/beacon-chain/sync"
|
|
ethpb "github.com/prysmaticlabs/prysm/v3/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
|
|
Ctx context.Context
|
|
ChainStartFetcher execution.ChainStartFetcher
|
|
HeadFetcher blockchain.HeadFetcher
|
|
CanonicalFetcher blockchain.CanonicalFetcher
|
|
FinalizationFetcher blockchain.FinalizationFetcher
|
|
DepositFetcher depositcache.DepositFetcher
|
|
BlockFetcher execution.POWBlockFetcher
|
|
GenesisTimeFetcher blockchain.TimeFetcher
|
|
StateNotifier statefeed.Notifier
|
|
BlockNotifier blockfeed.Notifier
|
|
AttestationNotifier operation.Notifier
|
|
Broadcaster p2p.Broadcaster
|
|
AttestationsPool attestations.Pool
|
|
SlashingsPool slashings.PoolManager
|
|
ChainStartChan chan time.Time
|
|
ReceivedAttestationsBuffer chan *ethpb.Attestation
|
|
CollectedAttestationsBuffer chan []*ethpb.Attestation
|
|
StateGen stategen.StateManager
|
|
SyncChecker sync.Checker
|
|
ReplayerBuilder stategen.ReplayerBuilder
|
|
HeadUpdater blockchain.HeadUpdater
|
|
OptimisticModeFetcher blockchain.OptimisticModeFetcher
|
|
}
|