mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-20 13:24:44 +00:00
Use par_iter for keypair generation
This commit is contained in:
@@ -22,3 +22,4 @@ eth2_ssz = { path = "../eth2/utils/ssz" }
|
||||
eth2_ssz_derive = { path = "../eth2/utils/ssz_derive" }
|
||||
hex = "0.4"
|
||||
validator_client = { path = "../validator_client" }
|
||||
rayon = "1.2.0"
|
||||
|
||||
@@ -2,6 +2,7 @@ mod cli;
|
||||
|
||||
use clap::ArgMatches;
|
||||
use environment::RuntimeContext;
|
||||
use rayon::prelude::*;
|
||||
use slog::{crit, info};
|
||||
use std::fs;
|
||||
use std::path::PathBuf;
|
||||
@@ -128,7 +129,7 @@ fn make_validators(
|
||||
spec: ChainSpec,
|
||||
) -> Result<Vec<ValidatorDirectory>, String> {
|
||||
methods
|
||||
.iter()
|
||||
.par_iter()
|
||||
.map(|method| {
|
||||
let mut builder = ValidatorDirectoryBuilder::default()
|
||||
.spec(spec.clone())
|
||||
|
||||
Reference in New Issue
Block a user