diff --git a/eth2/types/src/beacon_state.rs b/eth2/types/src/beacon_state.rs index 3d94a8e3d..61f270e15 100644 --- a/eth2/types/src/beacon_state.rs +++ b/eth2/types/src/beacon_state.rs @@ -9,6 +9,7 @@ use bls::verify_proof_of_possession; use honey_badger_split::SplitExt; use log::{debug, error, trace}; use rand::RngCore; +use rayon::prelude::*; use serde_derive::Serialize; use ssz::{hash, Decodable, DecodeError, Encodable, SszStream, TreeHash}; use std::collections::HashMap; @@ -202,7 +203,7 @@ impl BeaconState { trace!("Processing genesis deposits..."); let deposit_data = initial_validator_deposits - .iter() + .par_iter() .map(|deposit| &deposit.deposit_data) .collect();