Add testing keypairs to validator client

This commit is contained in:
Paul Hauner
2019-09-01 20:09:46 +10:00
parent 4a69d01a37
commit fe2cd2fc27
3 changed files with 76 additions and 199 deletions

View File

@@ -188,12 +188,7 @@ impl<B: BeaconNodeDuties + 'static, S: Signer + 'static, E: EthSpec> Service<B,
/* Generate the duties manager */
// Load generated keypairs
let keypairs = match client_config.fetch_keys(&log) {
Some(kps) => Arc::new(kps),
None => {
return Err("Unable to locate validator key pairs, nothing to do.".into());
}
};
let keypairs = Arc::new(client_config.fetch_keys(&log)?);
let slots_per_epoch = E::slots_per_epoch();