mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 11:11:20 +00:00
98949d8075
Co-authored-by: terencechain <terence@prysmaticlabs.com> Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
32 lines
1.3 KiB
Go
32 lines
1.3 KiB
Go
package validator
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/blockchain"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/cache"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/db"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/operations/attestations"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/operations/synccommittee"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/p2p"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/rpc/lookup"
|
|
v1alpha1validator "github.com/prysmaticlabs/prysm/v4/beacon-chain/rpc/prysm/v1alpha1/validator"
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/sync"
|
|
)
|
|
|
|
// Server defines a server implementation of the gRPC Validator service,
|
|
// providing RPC endpoints intended for validator clients.
|
|
type Server struct {
|
|
HeadFetcher blockchain.HeadFetcher
|
|
TimeFetcher blockchain.TimeFetcher
|
|
SyncChecker sync.Checker
|
|
AttestationsPool attestations.Pool
|
|
PeerManager p2p.PeerManager
|
|
Broadcaster p2p.Broadcaster
|
|
Stater lookup.Stater
|
|
OptimisticModeFetcher blockchain.OptimisticModeFetcher
|
|
SyncCommitteePool synccommittee.Pool
|
|
V1Alpha1Server *v1alpha1validator.Server
|
|
ProposerSlotIndexCache *cache.ProposerPayloadIDsCache
|
|
ChainInfoFetcher blockchain.ChainInfoFetcher
|
|
BeaconDB db.ReadOnlyDatabase
|
|
}
|