prysm-pulse/config/params/init.go
Nishant Das 3d337b07e1
Remove Ropsten Testnet Config (#12058)
* remove support for ropsten testnet

* add deprecated flag for ropsten

---------

Co-authored-by: P <1674920+peterbitfly@users.noreply.github.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2023-03-01 13:26:32 +08:00

26 lines
575 B
Go

package params
func init() {
defaults := []*BeaconChainConfig{
MainnetConfig(),
PraterConfig(),
MinimalSpecConfig(),
E2ETestConfig(),
E2EMainnetTestConfig(),
InteropConfig(),
}
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")
}
}