From 869f36ffbec78233a91f501ae3d03eedf8a3c71a Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Thu, 10 Jan 2019 14:46:56 -0600 Subject: [PATCH] Use the `Default::default` validator for testing --- beacon_chain/spec/src/foundation.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/beacon_chain/spec/src/foundation.rs b/beacon_chain/spec/src/foundation.rs index 1a493d72c..de433ea6b 100644 --- a/beacon_chain/spec/src/foundation.rs +++ b/beacon_chain/spec/src/foundation.rs @@ -101,15 +101,7 @@ fn initial_validators_for_testing() -> Vec { }; let validator_record = ValidatorRecord { pubkey: keypair.pk.clone(), - withdrawal_credentials: Hash256::zero(), - randao_commitment: Hash256::zero(), - randao_layers: 0, - status: From::from(0), - latest_status_change_slot: 0, - exit_count: 0, - custody_commitment: Hash256::zero(), - latest_custody_reseed_slot: 0, - penultimate_custody_reseed_slot: 0, + ..std::default::Default::default() }; initial_validators.push(validator_record); }