mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-09 03:31:45 +00:00
Add Exit support to test_harness
This commit is contained in:
@@ -68,6 +68,11 @@ impl Validator {
|
||||
pub fn is_penalized_at(&self, epoch: Epoch) -> bool {
|
||||
self.penalized_epoch <= epoch
|
||||
}
|
||||
|
||||
/// Returns `true` if the validator is considered penalized at some epoch.
|
||||
pub fn has_initiated_exit(&self) -> bool {
|
||||
self.status_flags == Some(StatusFlags::InitiatedExit)
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Validator {
|
||||
|
||||
Reference in New Issue
Block a user