mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-30 12:47:05 +00:00
rebase onto fulu
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user