mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-06 01:32:18 +00:00
bcea2c1b22
* config: use medalla as default * Tests: align with medalla spec * Config/flag: deprecate medalla feature flag * Update shared/featureconfig/flags.go * Spectest: set genesis forkversion to 0,0,0,0 * Config: set medalla as defat in Configure * Extra space * Shard: use copy * Revert a p2p fork test * Update default medalla for tools * Use medalla config for e2e * Fix E2E Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com> Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> Co-authored-by: Ivan Martinez <ivanthegreatdev@gmail.com>
30 lines
827 B
Go
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)
|
|
}
|
|
|
|
// 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
|
|
}
|
|
|
|
// UseMedallaConfig sets the main beacon chain
|
|
// config for medalla.
|
|
func UseMedallaConfig() {
|
|
beaconConfig = MedallaConfig()
|
|
}
|