2021-07-12 15:38:55 +00:00
|
|
|
package validator
|
|
|
|
|
2021-07-16 20:55:22 +00:00
|
|
|
import (
|
|
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/blockchain"
|
2021-07-22 17:48:32 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/operations/attestations"
|
2021-08-04 09:01:38 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/p2p"
|
2021-07-23 14:29:38 +00:00
|
|
|
v1alpha1validator "github.com/prysmaticlabs/prysm/beacon-chain/rpc/prysm/v1alpha1/validator"
|
2021-07-16 20:55:22 +00:00
|
|
|
"github.com/prysmaticlabs/prysm/beacon-chain/sync"
|
|
|
|
)
|
|
|
|
|
2021-07-12 15:38:55 +00:00
|
|
|
// Server defines a server implementation of the gRPC Validator service,
|
|
|
|
// providing RPC endpoints intended for validator clients.
|
|
|
|
type Server struct {
|
2021-07-22 17:48:32 +00:00
|
|
|
HeadFetcher blockchain.HeadFetcher
|
|
|
|
TimeFetcher blockchain.TimeFetcher
|
|
|
|
SyncChecker sync.Checker
|
|
|
|
AttestationsPool attestations.Pool
|
2021-08-05 07:23:52 +00:00
|
|
|
PeerManager p2p.PeerManager
|
2021-08-04 09:01:38 +00:00
|
|
|
Broadcaster p2p.Broadcaster
|
2021-07-23 14:29:38 +00:00
|
|
|
V1Alpha1Server *v1alpha1validator.Server
|
2021-07-12 15:38:55 +00:00
|
|
|
}
|