rebase onto fulu

This commit is contained in:
Eitan Seri-Levi
2025-03-09 16:36:15 -06:00
parent fde5131895
commit fe96804a45
5 changed files with 13 additions and 9 deletions

View File

@@ -456,14 +456,14 @@ impl ChainSpec {
/// Returns true if the given epoch is greater than or equal to the `EIP7805_FORK_EPOCH`.
pub fn is_focil_enabled_for_epoch(&self, block_epoch: Epoch) -> bool {
self.eip7805_fork_epoch.map_or(false, |eip7805_fork_epoch| {
self.eip7805_fork_epoch.is_some_and(|eip7805_fork_epoch| {
block_epoch >= eip7805_fork_epoch
})
}
/// Returns true if `EIP7805_FORK_EPOCH` is set and is not set to `FAR_FUTURE_EPOCH`.
pub fn is_focil_scheduled(&self) -> bool {
self.eip7805_fork_epoch.map_or(false, |eip7805_fork_epoch| {
self.eip7805_fork_epoch.is_some_and(|eip7805_fork_epoch| {
eip7805_fork_epoch != self.far_future_epoch
})
}