mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 21:07:18 +00:00
27 lines
594 B
Go
27 lines
594 B
Go
|
package params
|
||
|
|
||
|
func init() {
|
||
|
defaults := []*BeaconChainConfig{
|
||
|
MainnetConfig(),
|
||
|
PraterConfig(),
|
||
|
MinimalSpecConfig(),
|
||
|
E2ETestConfig(),
|
||
|
E2EMainnetTestConfig(),
|
||
|
InteropConfig(),
|
||
|
RopstenConfig(),
|
||
|
}
|
||
|
configs = newConfigset(defaults...)
|
||
|
// ensure that main net is always present and active by default
|
||
|
if err := SetActive(MainnetConfig()); err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
// make sure mainnet is present and active
|
||
|
m, err := ByName(MainnetName)
|
||
|
if err != nil {
|
||
|
panic(err)
|
||
|
}
|
||
|
if configs.getActive() != m {
|
||
|
panic("mainnet should always be the active config at init() time")
|
||
|
}
|
||
|
}
|