mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
setting missing beacon API (#13778)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user