prysm-pulse/shared/params/testnet_zinken_config.go
Nishant Das 63c1057ae6
add bootnode (#7415)
Co-authored-by: Victor Farazdagi <simple.square@gmail.com>
Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
2020-10-02 12:28:09 -07:00

35 lines
1.1 KiB
Go

package params
// UseZinkenNetworkConfig uses the Zinken specific
// network config.
func UseZinkenNetworkConfig() {
cfg := BeaconNetworkConfig().Copy()
cfg.ContractDeploymentBlock = 3384340
cfg.ChainID = 5
cfg.NetworkID = 5
cfg.DepositContractAddress = "0x99F0Ec06548b086E46Cb0019C78D0b9b9F36cD53"
cfg.BootstrapNodes = []string{
// Prysm Bootnode 1
"enr:-Ku4QH63huZ12miIY0kLI9dunG5fwKpnn-zR3XyA_kH6rQpRD1VoyLyzIcFysCJ09JDprdX-EzXp-Nc8swYqBznkXggBh2F0dG5ldHOIAAAAAAAAAACEZXRoMpDaNQiCAAAAA___________gmlkgnY0gmlwhBLf22SJc2VjcDI1NmsxoQILqxBY-_SF8o_5FjFD3yM92s50zT_ciFi8hStde5AEjIN1ZHCCH0A",
}
OverrideBeaconNetworkConfig(cfg)
}
// UseZinkenConfig sets the main beacon chain
// config for Zinken.
func UseZinkenConfig() {
beaconConfig = ZinkenConfig()
}
// ZinkenConfig defines the config for the
// Zinken testnet.
func ZinkenConfig() *BeaconChainConfig {
cfg := MainnetConfig().Copy()
cfg.MinGenesisTime = 1602504000
cfg.GenesisDelay = 345600
cfg.GenesisForkVersion = []byte{0x00, 0x00, 0x00, 0x03}
cfg.NetworkName = "zinken"
cfg.MinGenesisActiveValidatorCount = 1024
return cfg
}