mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
setting missing beacon API (#13778)
This commit is contained in:
parent
27ecf448a7
commit
2255c8b287
@ -660,6 +660,8 @@ func (c *ValidatorClient) registerRPCService(router *mux.Router) error {
|
||||
ClientGrpcRetryDelay: grpcRetryDelay,
|
||||
ClientGrpcHeaders: strings.Split(grpcHeaders, ","),
|
||||
ClientWithCert: clientCert,
|
||||
BeaconApiTimeout: time.Second * 30,
|
||||
BeaconApiEndpoint: c.cliCtx.String(flags.BeaconRESTApiProviderFlag.Name),
|
||||
Router: router,
|
||||
})
|
||||
return c.services.RegisterService(server)
|
||||
|
@ -53,6 +53,8 @@ type Config struct {
|
||||
GenesisFetcher client.GenesisFetcher
|
||||
WalletInitializedFeed *event.Feed
|
||||
NodeGatewayEndpoint string
|
||||
BeaconApiEndpoint string
|
||||
BeaconApiTimeout time.Duration
|
||||
Router *mux.Router
|
||||
Wallet *wallet.Wallet
|
||||
}
|
||||
@ -130,6 +132,8 @@ func NewServer(ctx context.Context, cfg *Config) *Server {
|
||||
validatorMonitoringPort: cfg.ValidatorMonitoringPort,
|
||||
validatorGatewayHost: cfg.ValidatorGatewayHost,
|
||||
validatorGatewayPort: cfg.ValidatorGatewayPort,
|
||||
beaconApiTimeout: cfg.BeaconApiTimeout,
|
||||
beaconApiEndpoint: cfg.BeaconApiEndpoint,
|
||||
router: cfg.Router,
|
||||
}
|
||||
// immediately register routes to override any catchalls
|
||||
|
Loading…
Reference in New Issue
Block a user