Skip to content

Commit

Permalink
Merge pull request #61 from ethpandaops/peer-das
Browse files Browse the repository at this point in the history
PeerDAS support
  • Loading branch information
pk910 authored Aug 15, 2024
2 parents e7c86f4 + f5d44b5 commit 2a977cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions handlers/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions types/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down

0 comments on commit 2a977cd

Please sign in to comment.