mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 12:47:05 +00:00
Re-add ValidatorRecord::status_is() fn
It was accidentally removed.
This commit is contained in:
@@ -41,6 +41,12 @@ pub struct ValidatorRecord {
|
||||
pub exit_slot: u64,
|
||||
}
|
||||
|
||||
impl ValidatorRecord {
|
||||
pub fn status_is(&self, status: ValidatorStatus) -> bool {
|
||||
self.status == status
|
||||
}
|
||||
}
|
||||
|
||||
impl Encodable for ValidatorStatus {
|
||||
fn ssz_append(&self, s: &mut SszStream) {
|
||||
let byte: u8 = match self {
|
||||
|
||||
Reference in New Issue
Block a user