mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 12:57:18 +00:00
5fdb916b4f
* Update eth1data params to double * Update spec tests tags and state field for fssz gen * Update more spec test sha tags * Update slashing params * Update slashing precompute to use config instead of hardcoded 3 * Update slashing test values due to config changes * Update configs for slashedless test * Go mod tidy * Add toledo config (#7743) * Update genesis delay to one week (#7782) * Add Pyrmont config (#7797) * Add Pyrmont config * Fix config * Update genesis time to the correct value * Remove TestExecuteStateTransition_FullBlock * Add back missing comments * Update spectests to v1.0.0 Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
35 lines
1.1 KiB
Go
35 lines
1.1 KiB
Go
package params
|
|
|
|
// UseToledoNetworkConfig uses the Toledo specific
|
|
// network config.
|
|
func UseToledoNetworkConfig() {
|
|
cfg := BeaconNetworkConfig().Copy()
|
|
cfg.ContractDeploymentBlock = 3702432
|
|
cfg.ChainID = 5
|
|
cfg.NetworkID = 5
|
|
cfg.DepositContractAddress = "0x47709dC7a8c18688a1f051761fc34ac253970bC0"
|
|
cfg.BootstrapNodes = []string{
|
|
// Prysm Bootnode 1
|
|
"enr:-Ku4QL5E378NT4-vqP6v1mZ7kHxiTHJvuBvQixQsuTTCffa0PJNWMBlG3Mduvsvd6T2YP1U3l5tBKO5H-9wyX2SCtPkBh2F0dG5ldHOIAAAAAAAAAACEZXRoMpC4EvfsAHAe0P__________gmlkgnY0gmlwhDaetEeJc2VjcDI1NmsxoQKtGC2CAuba7goLLdle899M3esUmoWRvzi7GBVhq6ViCYN1ZHCCIyg",
|
|
}
|
|
OverrideBeaconNetworkConfig(cfg)
|
|
}
|
|
|
|
// UseToledoConfig sets the main beacon chain
|
|
// config for Toledo testnet.
|
|
func UseToledoConfig() {
|
|
beaconConfig = ToledoConfig()
|
|
}
|
|
|
|
// ToledoConfig defines the config for the
|
|
// Toledo testnet.
|
|
func ToledoConfig() *BeaconChainConfig {
|
|
cfg := MainnetConfig().Copy()
|
|
cfg.MinGenesisTime = 1605009600
|
|
cfg.GenesisDelay = 86400
|
|
cfg.GenesisForkVersion = []byte{0x00, 0x70, 0x1E, 0xD0}
|
|
cfg.NetworkName = "toledo"
|
|
cfg.SecondsPerETH1Block = 14
|
|
return cfg
|
|
}
|