From b865768d3b48b7f202d077bd121b7976912e4e29 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Thu, 7 Feb 2019 09:54:45 +1100 Subject: [PATCH] Update validator_inductor to use Slot newtype --- eth2/validator_induction/src/inductor.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/eth2/validator_induction/src/inductor.rs b/eth2/validator_induction/src/inductor.rs index 6b3cfdf16e..8dc4c853c3 100644 --- a/eth2/validator_induction/src/inductor.rs +++ b/eth2/validator_induction/src/inductor.rs @@ -1,5 +1,5 @@ use bls::verify_proof_of_possession; -use types::{BeaconState, ChainSpec, Deposit, Validator}; +use types::{BeaconState, ChainSpec, Deposit, Slot, Validator}; #[derive(Debug, PartialEq, Clone)] pub enum ValidatorInductionError { @@ -41,15 +41,15 @@ pub fn process_deposit( let validator = Validator { pubkey: deposit_input.pubkey.clone(), withdrawal_credentials: deposit_input.withdrawal_credentials, - proposer_slots: 0, + proposer_slots: Slot::new(0), activation_slot: spec.far_future_slot, exit_slot: spec.far_future_slot, withdrawal_slot: spec.far_future_slot, penalized_slot: spec.far_future_slot, exit_count: 0, status_flags: None, - latest_custody_reseed_slot: 0, - penultimate_custody_reseed_slot: 0, + latest_custody_reseed_slot: Slot::new(0), + penultimate_custody_reseed_slot: Slot::new(0), }; let _index = state.validator_registry.len();