Skip to content

Commit

Permalink
Rename SHARDING_FORK to DENEB_FORK (erigontech#7014)
Browse files Browse the repository at this point in the history
  • Loading branch information
yperbasis authored and ty-sentio-xyz committed Apr 13, 2023
1 parent 155ef62 commit 152bdd0
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions cl/clparams/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,14 +420,14 @@ type BeaconChainConfig struct {

// Fork-related values.
GenesisForkVersion uint32 `yaml:"GENESIS_FORK_VERSION" spec:"true"` // GenesisForkVersion is used to track fork version between state transitions.
AltairForkVersion uint32 `yaml:"ALTAIR_FORK_VERSION" spec:"true"` // AltairForkVersion is used to represent the fork version for altair.
AltairForkEpoch uint64 `yaml:"ALTAIR_FORK_EPOCH" spec:"true"` // AltairForkEpoch is used to represent the assigned fork epoch for altair.
BellatrixForkVersion uint32 `yaml:"BELLATRIX_FORK_VERSION" spec:"true"` // BellatrixForkVersion is used to represent the fork version for bellatrix.
BellatrixForkEpoch uint64 `yaml:"BELLATRIX_FORK_EPOCH" spec:"true"` // BellatrixForkEpoch is used to represent the assigned fork epoch for bellatrix.
ShardingForkVersion uint32 `yaml:"SHARDING_FORK_VERSION" spec:"true"` // ShardingForkVersion is used to represent the fork version for sharding.
ShardingForkEpoch uint64 `yaml:"SHARDING_FORK_EPOCH" spec:"true"` // ShardingForkEpoch is used to represent the assigned fork epoch for sharding.
CapellaForkVersion uint32 `yaml:"CAPELLA_FORK_VERSION" spec:"true"` // CapellaForkVersion is used to represent the fork version for capella.
CapellaForkEpoch uint64 `yaml:"CAPELLA_FORK_EPOCH" spec:"true"` // CapellaForkEpoch is used to represent the assigned fork epoch for capella.
AltairForkVersion uint32 `yaml:"ALTAIR_FORK_VERSION" spec:"true"` // AltairForkVersion is used to represent the fork version for Altair.
AltairForkEpoch uint64 `yaml:"ALTAIR_FORK_EPOCH" spec:"true"` // AltairForkEpoch is used to represent the assigned fork epoch for Altair.
BellatrixForkVersion uint32 `yaml:"BELLATRIX_FORK_VERSION" spec:"true"` // BellatrixForkVersion is used to represent the fork version for Bellatrix.
BellatrixForkEpoch uint64 `yaml:"BELLATRIX_FORK_EPOCH" spec:"true"` // BellatrixForkEpoch is used to represent the assigned fork epoch for Bellatrix.
CapellaForkVersion uint32 `yaml:"CAPELLA_FORK_VERSION" spec:"true"` // CapellaForkVersion is used to represent the fork version for Capella.
CapellaForkEpoch uint64 `yaml:"CAPELLA_FORK_EPOCH" spec:"true"` // CapellaForkEpoch is used to represent the assigned fork epoch for Capella.
DenebForkVersion uint32 `yaml:"DENEB_FORK_VERSION" spec:"true"` // DenebForkVersion is used to represent the fork version for Deneb.
DenebForkEpoch uint64 `yaml:"DENEB_FORK_EPOCH" spec:"true"` // DenebForkEpoch is used to represent the assigned fork epoch for Deneb.

ForkVersionSchedule map[[VersionLength]byte]uint64 // Schedule of fork epochs by version.
ForkVersionNames map[[VersionLength]byte]string // Human-readable names of fork versions.
Expand Down Expand Up @@ -673,8 +673,8 @@ var MainnetBeaconConfig BeaconChainConfig = BeaconChainConfig{
BellatrixForkEpoch: 144869,
CapellaForkVersion: 0x03000000,
CapellaForkEpoch: math.MaxUint64,
ShardingForkVersion: 0x04000000,
ShardingForkEpoch: math.MaxUint64,
DenebForkVersion: 0x04000000,
DenebForkEpoch: math.MaxUint64,

// New values introduced in Altair hard fork 1.
// Participation flag indices.
Expand Down Expand Up @@ -784,12 +784,11 @@ func goerliConfig() BeaconChainConfig {
cfg.DepositNetworkID = uint64(GoerliNetwork)
cfg.AltairForkEpoch = 36660
cfg.AltairForkVersion = 0x1001020
cfg.CapellaForkVersion = 0x03001020
cfg.ShardingForkVersion = 0x40001020
cfg.BellatrixForkEpoch = 112260
cfg.BellatrixForkVersion = 0x02001020
cfg.CapellaForkEpoch = 162304
cfg.CapellaForkVersion = 0x03001020
cfg.DenebForkVersion = 0x40001020
cfg.TerminalTotalDifficulty = "10790000"
cfg.DepositContractAddress = "0xff50ed3d0ec03aC01D4C79aAd74928BFF48a7b2b"
cfg.InitializeForkSchedule()
Expand Down

0 comments on commit 152bdd0

Please sign in to comment.