prysm-pulse/shared/params/testnet_spadina_config.go
terence tsao 305fdd2e1b
Add spadina network name (#7309)
* Update spadina network name
* Merge refs/heads/master into update-config
* Merge refs/heads/master into update-config
* Merge refs/heads/master into update-config
* Merge refs/heads/master into update-config
2020-09-22 23:20:20 +00:00

32 lines
823 B
Go

package params
// UseSpadinaNetworkConfig uses the Spadina specific
// network config.
func UseSpadinaNetworkConfig() {
cfg := BeaconNetworkConfig().Copy()
cfg.ContractDeploymentBlock = 3384340
cfg.ChainID = 5
cfg.NetworkID = 5
cfg.DepositContractAddress = "0x48B597F4b53C21B48AD95c7256B49D1779Bd5890"
cfg.BootstrapNodes = []string{}
OverrideBeaconNetworkConfig(cfg)
}
// UseSpadinaConfig sets the main beacon chain
// config for Spadina.
func UseSpadinaConfig() {
beaconConfig = SpadinaConfig()
}
// SpadinaConfig defines the config for the
// Spadina testnet.
func SpadinaConfig() *BeaconChainConfig {
cfg := MainnetConfig().Copy()
cfg.MinGenesisTime = 1601380800
cfg.GenesisForkVersion = []byte{0x00, 0x00, 0x00, 0x02}
cfg.NetworkName = "Spadina"
cfg.MinGenesisActiveValidatorCount = 1024
return cfg
}