mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 19:21:19 +00:00
456b4d463e
* validator migration * status helpers * implementation * fix existing tests * build file * tests * run endpoint through API Middleware * reduce helper package visibility * empty caches before each test * assign all validators to subnets Co-authored-by: Nishant Das <nishdas93@gmail.com>
22 lines
773 B
Go
22 lines
773 B
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/p2p"
|
|
v1alpha1validator "github.com/prysmaticlabs/prysm/beacon-chain/rpc/prysm/v1alpha1/validator"
|
|
"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
|
|
TimeFetcher blockchain.TimeFetcher
|
|
SyncChecker sync.Checker
|
|
AttestationsPool attestations.Pool
|
|
PeerManager p2p.PeerManager
|
|
Broadcaster p2p.Broadcaster
|
|
V1Alpha1Server *v1alpha1validator.Server
|
|
}
|