From 5e5cfb782ef85c7bab95dff70366db849caa10be Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Mon, 11 Mar 2019 18:58:49 +1100 Subject: [PATCH] Add concurrency to TestBeaconStateBuilder Specifically to generating the initial validator objects. --- eth2/types/src/test_utils/testing_beacon_state_builder.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth2/types/src/test_utils/testing_beacon_state_builder.rs b/eth2/types/src/test_utils/testing_beacon_state_builder.rs index b3cfea6c0..e3f3313de 100644 --- a/eth2/types/src/test_utils/testing_beacon_state_builder.rs +++ b/eth2/types/src/test_utils/testing_beacon_state_builder.rs @@ -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,