mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 21:38:05 -05:00
* Electra: Beacon State * Electra: Beacon state fixes from PR 13919 * Add missing tests - part 1 * Split eip_7251_root.go into different files and reuse/share code with historical state summaries root. It's identical! * Add missing tests - part 2 * deposit receipts start index getters and setters (#13947) * adding in getters and setters for deposit receipts start index * adding tests * gaz * Add missing tests - part 3 of 3 Update the electra withdrawal example with a ssz state containing pending partial withdrawals * add tests for beacon-chain/state/state-native/getters_balance_deposits.go * Add electra field to testing/util/block.go execution payload * godoc commentary on public methods * Fix failing test * Add balances index out of bounds check and relevant tests. * Revert switch case electra * Instead of copying spectest data into testdata, use the spectest dependency * Deepsource fixes * Address @rkapka PR feedback * s/MaxPendingPartialsPerWithdrawalSweep/MaxPendingPartialsPerWithdrawalsSweep/ * Use multivalue slice compatible accessors for validator and balance in ActiveBalanceAtIndex * More @rkapka feedback. What a great reviewer! * More tests for branching logic in ExitEpochAndUpdateChurn * fix build --------- Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
49 lines
2.2 KiB
Go
49 lines
2.2 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 = 132608
|
|
cfg.DenebForkVersion = []byte{0x90, 0x00, 0x00, 0x73}
|
|
cfg.ElectraForkEpoch = math.MaxUint64
|
|
cfg.ElectraForkVersion = []byte{0x90, 0x00, 0x00, 0x74} // TODO: Define sepolia fork version for electra. This is a placeholder value.
|
|
cfg.TerminalTotalDifficulty = "17000000000000000"
|
|
cfg.DepositContractAddress = "0x7f02C3E3c98b133055B8B348B2Ac625669Ed295D"
|
|
cfg.InitializeForkSchedule()
|
|
return cfg
|
|
}
|