clean up enabled and disabled fork logic in ef tests

This commit is contained in:
realbigsean
2024-06-25 13:55:08 -07:00
parent cae02943ef
commit 7d243f9f19
2 changed files with 27 additions and 16 deletions

View File

@@ -120,6 +120,18 @@ impl ForkName {
}
}
pub fn altair_enabled(self) -> bool {
self >= ForkName::Altair
}
pub fn bellatrix_enabled(self) -> bool {
self >= ForkName::Bellatrix
}
pub fn capella_enabled(self) -> bool {
self >= ForkName::Capella
}
pub fn deneb_enabled(self) -> bool {
self >= ForkName::Deneb
}