mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-11 18:04:18 +00:00
Update validator_inductor to use Slot newtype
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user