Add pyrmont hard fork config (#9394)

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
terence tsao 2021-08-16 12:51:43 -07:00 committed by GitHub
parent 643e20c50a
commit b28d65dc34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,7 @@
package params package params
import "math"
// UsePyrmontNetworkConfig uses the Pyrmont specific // UsePyrmontNetworkConfig uses the Pyrmont specific
// network config. // network config.
func UsePyrmontNetworkConfig() { func UsePyrmontNetworkConfig() {
@ -26,6 +28,12 @@ func PyrmontConfig() *BeaconChainConfig {
cfg.GenesisDelay = 432000 cfg.GenesisDelay = 432000
cfg.ConfigName = ConfigNames[Pyrmont] cfg.ConfigName = ConfigNames[Pyrmont]
cfg.GenesisForkVersion = []byte{0x00, 0x00, 0x20, 0x09} cfg.GenesisForkVersion = []byte{0x00, 0x00, 0x20, 0x09}
cfg.AltairForkVersion = []byte{0x01, 0x00, 0x20, 0x09}
cfg.AltairForkEpoch = 61650
cfg.MergeForkVersion = []byte{0x02, 0x00, 0x20, 0x09}
cfg.MergeForkEpoch = math.MaxUint64
cfg.ShardingForkVersion = []byte{0x03, 0x00, 0x20, 0x09}
cfg.ShardingForkEpoch = math.MaxUint64
cfg.SecondsPerETH1Block = 14 cfg.SecondsPerETH1Block = 14
cfg.DepositChainID = 5 cfg.DepositChainID = 5
cfg.DepositNetworkID = 5 cfg.DepositNetworkID = 5