mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 00:27:38 +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,
|
ClientGrpcRetryDelay: grpcRetryDelay,
|
||||||
ClientGrpcHeaders: strings.Split(grpcHeaders, ","),
|
ClientGrpcHeaders: strings.Split(grpcHeaders, ","),
|
||||||
ClientWithCert: clientCert,
|
ClientWithCert: clientCert,
|
||||||
|
BeaconApiTimeout: time.Second * 30,
|
||||||
|
BeaconApiEndpoint: c.cliCtx.String(flags.BeaconRESTApiProviderFlag.Name),
|
||||||
Router: router,
|
Router: router,
|
||||||
})
|
})
|
||||||
return c.services.RegisterService(server)
|
return c.services.RegisterService(server)
|
||||||
|
@ -53,6 +53,8 @@ type Config struct {
|
|||||||
GenesisFetcher client.GenesisFetcher
|
GenesisFetcher client.GenesisFetcher
|
||||||
WalletInitializedFeed *event.Feed
|
WalletInitializedFeed *event.Feed
|
||||||
NodeGatewayEndpoint string
|
NodeGatewayEndpoint string
|
||||||
|
BeaconApiEndpoint string
|
||||||
|
BeaconApiTimeout time.Duration
|
||||||
Router *mux.Router
|
Router *mux.Router
|
||||||
Wallet *wallet.Wallet
|
Wallet *wallet.Wallet
|
||||||
}
|
}
|
||||||
@ -130,6 +132,8 @@ func NewServer(ctx context.Context, cfg *Config) *Server {
|
|||||||
validatorMonitoringPort: cfg.ValidatorMonitoringPort,
|
validatorMonitoringPort: cfg.ValidatorMonitoringPort,
|
||||||
validatorGatewayHost: cfg.ValidatorGatewayHost,
|
validatorGatewayHost: cfg.ValidatorGatewayHost,
|
||||||
validatorGatewayPort: cfg.ValidatorGatewayPort,
|
validatorGatewayPort: cfg.ValidatorGatewayPort,
|
||||||
|
beaconApiTimeout: cfg.BeaconApiTimeout,
|
||||||
|
beaconApiEndpoint: cfg.BeaconApiEndpoint,
|
||||||
router: cfg.Router,
|
router: cfg.Router,
|
||||||
}
|
}
|
||||||
// immediately register routes to override any catchalls
|
// immediately register routes to override any catchalls
|
||||||
|
Loading…
Reference in New Issue
Block a user