prysm-pulse/shared/params/testnet_medalla_config.go
terence tsao 3a852bc032
eth1 chain ID and network checks (#6727)
* Add config
* Update config values
* Add checks
* Merge refs/heads/master into eth1network
* Merge refs/heads/master into eth1network
* Update e2e test config for devnet
* Merge branch 'eth1network' of github.com:prysmaticlabs/prysm into eth1network
2020-07-27 04:48:36 +00:00

30 lines
827 B
Go

package params
// UseMedallaNetworkConfig uses the Medalla specific
// network config.
func UseMedallaNetworkConfig() {
cfg := BeaconNetworkConfig().Copy()
cfg.ContractDeploymentBlock = 3085928
cfg.DepositContractAddress = "0x07b39F4fDE4A38bACe212b546dAc87C58DfE3fDC"
cfg.ChainID = 5 // Chain ID of eth1 goerli testnet.
cfg.NetworkID = 5 // Network ID of eth1 goerli testnet.
cfg.BootstrapNodes = []string{}
OverrideBeaconNetworkConfig(cfg)
}
// UseMedallaConfig sets the main beacon chain
// config for medalla.
func UseMedallaConfig() {
beaconConfig = MedallaConfig()
}
// MedallaConfig defines the config for the
// medalla testnet.
func MedallaConfig() *BeaconChainConfig {
cfg := MainnetConfig().Copy()
cfg.MinGenesisTime = 1596546000
cfg.GenesisForkVersion = []byte{0x00, 0x00, 0x00, 0x01}
return cfg
}