Add concurrency to TestBeaconStateBuilder

Specifically to generating the initial validator objects.
This commit is contained in:
Paul Hauner
2019-03-11 18:58:49 +11:00
parent 36085f63e9
commit 5e5cfb782e

View File

@@ -23,7 +23,7 @@ impl TestingBeaconStateBuilder {
.collect();
let validators = keypairs
.iter()
.par_iter()
.map(|keypair| {
let withdrawal_credentials = Hash256::from_slice(&get_withdrawal_credentials(
&keypair.pk,