mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 11:32:09 +00:00
47 lines
2.1 KiB
Go
47 lines
2.1 KiB
Go
package params
|
|
|
|
import (
|
|
"math"
|
|
|
|
eth1Params "github.com/ethereum/go-ethereum/params"
|
|
)
|
|
|
|
// UseSepoliaNetworkConfig uses the Sepolia beacon chain specific network config.
|
|
func UseSepoliaNetworkConfig() {
|
|
cfg := BeaconNetworkConfig().Copy()
|
|
cfg.ContractDeploymentBlock = 1273020
|
|
cfg.BootstrapNodes = []string{
|
|
// EF boot nodes
|
|
"enr:-Iq4QMCTfIMXnow27baRUb35Q8iiFHSIDBJh6hQM5Axohhf4b6Kr_cOCu0htQ5WvVqKvFgY28893DHAg8gnBAXsAVqmGAX53x8JggmlkgnY0gmlwhLKAlv6Jc2VjcDI1NmsxoQK6S-Cii_KmfFdUJL2TANL3ksaKUnNXvTCv1tLwXs0QgIN1ZHCCIyk",
|
|
"enr:-KG4QE5OIg5ThTjkzrlVF32WT_-XT14WeJtIz2zoTqLLjQhYAmJlnk4ItSoH41_2x0RX0wTFIe5GgjRzU2u7Q1fN4vADhGV0aDKQqP7o7pAAAHAyAAAAAAAAAIJpZIJ2NIJpcISlFsStiXNlY3AyNTZrMaEC-Rrd_bBZwhKpXzFCrStKp1q_HmGOewxY3KwM8ofAj_ODdGNwgiMog3VkcIIjKA",
|
|
// Teku boot node
|
|
"enr:-Ly4QFoZTWR8ulxGVsWydTNGdwEESueIdj-wB6UmmjUcm-AOPxnQi7wprzwcdo7-1jBW_JxELlUKJdJES8TDsbl1EdNlh2F0dG5ldHOI__78_v2bsV-EZXRoMpA2-lATkAAAcf__________gmlkgnY0gmlwhBLYJjGJc2VjcDI1NmsxoQI0gujXac9rMAb48NtMqtSTyHIeNYlpjkbYpWJw46PmYYhzeW5jbmV0cw-DdGNwgiMog3VkcIIjKA",
|
|
}
|
|
OverrideBeaconNetworkConfig(cfg)
|
|
}
|
|
|
|
// SepoliaConfig defines the config for the Sepolia beacon chain testnet.
|
|
func SepoliaConfig() *BeaconChainConfig {
|
|
cfg := MainnetConfig().Copy()
|
|
cfg.MinGenesisTime = 1655647200
|
|
cfg.GenesisDelay = 86400
|
|
cfg.MinGenesisActiveValidatorCount = 1300
|
|
cfg.ConfigName = SepoliaName
|
|
cfg.GenesisForkVersion = []byte{0x90, 0x00, 0x00, 0x69}
|
|
cfg.SecondsPerETH1Block = 14
|
|
cfg.DepositChainID = eth1Params.SepoliaChainConfig.ChainID.Uint64()
|
|
cfg.DepositNetworkID = eth1Params.SepoliaChainConfig.ChainID.Uint64()
|
|
cfg.AltairForkEpoch = 50
|
|
cfg.AltairForkVersion = []byte{0x90, 0x00, 0x00, 0x70}
|
|
cfg.BellatrixForkEpoch = 100
|
|
cfg.BellatrixForkVersion = []byte{0x90, 0x00, 0x00, 0x71}
|
|
cfg.CapellaForkEpoch = 56832
|
|
cfg.CapellaForkVersion = []byte{0x90, 0x00, 0x00, 0x72}
|
|
cfg.DenebForkEpoch = math.MaxUint64
|
|
cfg.DenebForkVersion = []byte{0x90, 0x00, 0x00, 0x73}
|
|
cfg.TerminalTotalDifficulty = "17000000000000000"
|
|
cfg.DepositContractAddress = "0x7f02C3E3c98b133055B8B348B2Ac625669Ed295D"
|
|
cfg.InitializeForkSchedule()
|
|
return cfg
|
|
}
|