mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 17:22:18 +00:00
034a28710e
* Add Prater config * Register flag everywhere * gofmt * Apply suggestions from code review Co-authored-by: terence tsao <terence@prysmaticlabs.com> * Update shared/params/testnet_prater_config.go Co-authored-by: terence tsao <terence@prysmaticlabs.com> Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> Co-authored-by: terence tsao <terence@prysmaticlabs.com>
38 lines
1.0 KiB
Go
38 lines
1.0 KiB
Go
package params
|
|
|
|
import (
|
|
eth1Params "github.com/ethereum/go-ethereum/params"
|
|
)
|
|
|
|
// UsePraterNetworkConfig uses the Prater specific
|
|
// network config.
|
|
func UsePraterNetworkConfig() {
|
|
cfg := BeaconNetworkConfig().Copy()
|
|
cfg.ContractDeploymentBlock = 4367322
|
|
cfg.BootstrapNodes = []string{
|
|
// TODO(8612): Define bootstrap nodes.
|
|
}
|
|
OverrideBeaconNetworkConfig(cfg)
|
|
}
|
|
|
|
// UsePraterConfig sets the main beacon chain
|
|
// config for Prater.
|
|
func UsePraterConfig() {
|
|
beaconConfig = PraterConfig()
|
|
}
|
|
|
|
// PraterConfig defines the config for the
|
|
// Prater testnet.
|
|
func PraterConfig() *BeaconChainConfig {
|
|
cfg := MainnetConfig().Copy()
|
|
cfg.MinGenesisTime = 1614588812
|
|
cfg.GenesisDelay = 1919188
|
|
cfg.ConfigName = ConfigNames[Prater]
|
|
cfg.GenesisForkVersion = []byte{0x00, 0x00, 0x10, 0x20}
|
|
cfg.SecondsPerETH1Block = 14
|
|
cfg.DepositChainID = eth1Params.GoerliChainConfig.ChainID.Uint64()
|
|
cfg.DepositNetworkID = eth1Params.GoerliChainConfig.ChainID.Uint64()
|
|
cfg.DepositContractAddress = "0xff50ed3d0ec03ac01d4c79aad74928bff48a7b2b"
|
|
return cfg
|
|
}
|