diff --git a/handlers/index.go b/handlers/index.go index 5b4e8b96..6a467230 100644 --- a/handlers/index.go +++ b/handlers/index.go @@ -198,6 +198,14 @@ func buildIndexPageData() (*models.IndexPageData, time.Duration) { Active: uint64(currentEpoch) >= utils.Config.Chain.Config.DenebForkEpoch, }) } + if utils.Config.Chain.Config.Eip7594ForkEpoch < uint64(18446744073709551615) && utils.Config.Chain.Config.Eip7594ForkVersion != "" { + pageData.NetworkForks = append(pageData.NetworkForks, &models.IndexPageDataForks{ + Name: "eip7594", + Epoch: utils.Config.Chain.Config.Eip7594ForkEpoch, + Version: utils.MustParseHex(utils.Config.Chain.Config.Eip7594ForkVersion), + Active: uint64(currentEpoch) >= utils.Config.Chain.Config.Eip7594ForkEpoch, + }) + } // load recent epochs buildIndexPageRecentEpochsData(pageData, uint64(currentEpoch), finalizedEpoch, justifiedEpoch, recentEpochCount) diff --git a/types/chain.go b/types/chain.go index b8baed1e..a4ea3d99 100644 --- a/types/chain.go +++ b/types/chain.go @@ -27,6 +27,8 @@ type ChainConfig struct { DenebForkEpoch uint64 `yaml:"DENEB_FORK_EPOCH"` ShardingForkVersion string `yaml:"SHARDING_FORK_VERSION"` ShardingForkEpoch uint64 `yaml:"SHARDING_FORK_EPOCH"` + Eip7594ForkVersion string `yaml:"EIP7594_FORK_VERSION"` + Eip7594ForkEpoch uint64 `yaml:"EIP7594_FORK_EPOCH"` SecondsPerSlot uint64 `yaml:"SECONDS_PER_SLOT"` SecondsPerEth1Block uint64 `yaml:"SECONDS_PER_ETH1_BLOCK"` MinValidatorWithdrawabilityDelay uint64 `yaml:"MIN_VALIDATOR_WITHDRAWABILITY_DELAY"`