Re-add ValidatorRecord::status_is() fn

It was accidentally removed.
This commit is contained in:
Paul Hauner
2018-12-29 14:34:22 +11:00
parent 9efc7a0def
commit b365bb8773
3 changed files with 16 additions and 7 deletions

View File

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