Skip to content

Commit

Permalink
add fulu activation badge
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Dec 13, 2024
1 parent a337118 commit 13f3837
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions clients/consensus/chainspec.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ type ChainSpec struct {
DenebForkEpoch *uint64 `yaml:"DENEB_FORK_EPOCH"`
ElectraForkVersion phase0.Version `yaml:"ELECTRA_FORK_VERSION" check-if-fork:"ElectraForkEpoch"`
ElectraForkEpoch *uint64 `yaml:"ELECTRA_FORK_EPOCH"`
Eip7594ForkVersion phase0.Version `yaml:"EIP7594_FORK_VERSION" check-if-fork:"Eip7594ForkEpoch"`
Eip7594ForkEpoch *uint64 `yaml:"EIP7594_FORK_EPOCH"`
FuluForkVersion phase0.Version `yaml:"FULU_FORK_VERSION" check-if-fork:"FuluForkEpoch"`
FuluForkEpoch *uint64 `yaml:"FULU_FORK_EPOCH"`
SecondsPerSlot time.Duration `yaml:"SECONDS_PER_SLOT"`
SlotsPerEpoch uint64 `yaml:"SLOTS_PER_EPOCH"`
EpochsPerHistoricalVector uint64 `yaml:"EPOCHS_PER_HISTORICAL_VECTOR"`
Expand All @@ -60,9 +60,9 @@ type ChainSpec struct {
MinActivationBalance uint64 `yaml:"MIN_ACTIVATION_BALANCE"`

// EIP7594: PeerDAS
NumberOfColumns *uint64 `yaml:"NUMBER_OF_COLUMNS" check-if-fork:"Eip7594ForkEpoch"`
DataColumnSidecarSubnetCount *uint64 `yaml:"DATA_COLUMN_SIDECAR_SUBNET_COUNT" check-if-fork:"Eip7594ForkEpoch"`
CustodyRequirement *uint64 `yaml:"CUSTODY_REQUIREMENT" check-if-fork:"Eip7594ForkEpoch"`
NumberOfColumns *uint64 `yaml:"NUMBER_OF_COLUMNS" check-if-fork:"FuluForkEpoch"`
DataColumnSidecarSubnetCount *uint64 `yaml:"DATA_COLUMN_SIDECAR_SUBNET_COUNT" check-if-fork:"FuluForkEpoch"`
CustodyRequirement *uint64 `yaml:"CUSTODY_REQUIREMENT" check-if-fork:"FuluForkEpoch"`

// additional dora specific specs
WhiskForkEpoch *uint64
Expand Down
10 changes: 5 additions & 5 deletions handlers/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,12 @@ func buildIndexPageData() (*models.IndexPageData, time.Duration) {
Active: uint64(currentEpoch) >= *specs.ElectraForkEpoch,
})
}
if specs.Eip7594ForkEpoch != nil && *specs.Eip7594ForkEpoch < uint64(18446744073709551615) {
if specs.FuluForkEpoch != nil && *specs.FuluForkEpoch < uint64(18446744073709551615) {
pageData.NetworkForks = append(pageData.NetworkForks, &models.IndexPageDataForks{
Name: "eip7594",
Epoch: *specs.Eip7594ForkEpoch,
Version: specs.Eip7594ForkVersion[:],
Active: uint64(currentEpoch) >= *specs.Eip7594ForkEpoch,
Name: "Fulu",
Epoch: *specs.FuluForkEpoch,
Version: specs.FuluForkVersion[:],
Active: uint64(currentEpoch) >= *specs.FuluForkEpoch,
})
}

Expand Down

0 comments on commit 13f3837

Please sign in to comment.