Add inclusion list sse event

This commit is contained in:
Eitan Seri-Levi
2025-03-20 23:59:32 -06:00
parent 411860fe58
commit 77e86b102d
6 changed files with 39 additions and 10 deletions

View File

@@ -456,16 +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.is_some_and(|eip7805_fork_epoch| {
block_epoch >= 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.is_some_and(|eip7805_fork_epoch| {
eip7805_fork_epoch != self.far_future_epoch
})
self.eip7805_fork_epoch
.is_some_and(|eip7805_fork_epoch| eip7805_fork_epoch != self.far_future_epoch)
}
/// Returns a full `Fork` struct for a given epoch.