mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-30 03:03:45 +00:00
removed ValidatorRecord::zero_with_rand_keypair()
This commit is contained in:
@@ -43,23 +43,6 @@ pub struct ValidatorRecord {
|
||||
pub second_last_poc_slot: u64
|
||||
}
|
||||
|
||||
impl ValidatorRecord {
|
||||
pub fn zero_with_rand_keypair() -> Self {
|
||||
Self {
|
||||
pubkey: Keypair::random().pk,
|
||||
withdrawal_credentials: Hash256::zero(),
|
||||
randao_commitment: Hash256::zero(),
|
||||
randao_layers: 0,
|
||||
status: ValidatorStatus::from(0),
|
||||
latest_status_change_slot: 0,
|
||||
exit_count: 0,
|
||||
poc_commitment: Hash256::zero(),
|
||||
last_poc_change_slot: 0,
|
||||
second_last_poc_slot: 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl ValidatorRecord {
|
||||
pub fn status_is(&self, status: ValidatorStatus) -> bool {
|
||||
self.status == status
|
||||
|
||||
Reference in New Issue
Block a user