mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-02 16:21:42 +00:00
validator client: start http api before genesis (#4714)
## Issue Addressed On a new network a user might require importing validators before waiting until genesis has occurred. ## Proposed Changes Starts the validator client http api before waiting for genesis ## Additional Info cc @antondlr
This commit is contained in:
@@ -220,14 +220,13 @@ impl<E: EthSpec> LocalValidatorClient<E> {
|
||||
config.validator_dir = files.validator_dir.path().into();
|
||||
config.secrets_dir = files.secrets_dir.path().into();
|
||||
|
||||
ProductionValidatorClient::new(context, config)
|
||||
let mut client = ProductionValidatorClient::new(context, config).await?;
|
||||
|
||||
client
|
||||
.start_service()
|
||||
.await
|
||||
.map(move |mut client| {
|
||||
client
|
||||
.start_service()
|
||||
.expect("should start validator services");
|
||||
Self { client, files }
|
||||
})
|
||||
.expect("should start validator services");
|
||||
Ok(Self { client, files })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user