removed ValidatorRecord::zero_with_rand_keypair()

This commit is contained in:
Grant Wuerker
2019-01-07 21:49:57 -06:00
parent a3ef9231a6
commit d2a62fa211
2 changed files with 9 additions and 19 deletions

View File

@@ -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