mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 11:11:20 +00:00
bbdf19cfd0
* Process atts and updeate head * Fix ctx * New test and old tests * Update validator_test.go * Update validator_test.go * Update service.go * Rename to UpdateHead * Update receive_attestation.go * Update receive_attestation.go Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
27 lines
1.0 KiB
Go
27 lines
1.0 KiB
Go
package validator
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/blockchain"
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/operations/attestations"
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/operations/synccommittee"
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/p2p"
|
|
v1alpha1validator "github.com/prysmaticlabs/prysm/beacon-chain/rpc/prysm/v1alpha1/validator"
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/rpc/statefetcher"
|
|
"github.com/prysmaticlabs/prysm/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
|
|
HeadUpdater blockchain.HeadUpdater
|
|
TimeFetcher blockchain.TimeFetcher
|
|
SyncChecker sync.Checker
|
|
AttestationsPool attestations.Pool
|
|
PeerManager p2p.PeerManager
|
|
Broadcaster p2p.Broadcaster
|
|
StateFetcher statefetcher.Fetcher
|
|
SyncCommitteePool synccommittee.Pool
|
|
V1Alpha1Server *v1alpha1validator.Server
|
|
}
|