mirror of
https://gitlab.com/pulsechaincom/lighthouse-pulse.git
synced 2025-01-06 19:12:20 +00:00
Use the Default::default
validator for testing
This commit is contained in:
parent
9720c548af
commit
869f36ffbe
@ -101,15 +101,7 @@ fn initial_validators_for_testing() -> Vec<ValidatorRecord> {
|
|||||||
};
|
};
|
||||||
let validator_record = ValidatorRecord {
|
let validator_record = ValidatorRecord {
|
||||||
pubkey: keypair.pk.clone(),
|
pubkey: keypair.pk.clone(),
|
||||||
withdrawal_credentials: Hash256::zero(),
|
..std::default::Default::default()
|
||||||
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,
|
|
||||||
};
|
};
|
||||||
initial_validators.push(validator_record);
|
initial_validators.push(validator_record);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user