forked from prysmaticlabs/prysm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Zinken config (prysmaticlabs#7391)
- Loading branch information
1 parent
db92d90
commit e07b71b
Showing
6 changed files
with
72 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package params | ||
|
||
// UseZinkenNetworkConfig uses the Zinken specific | ||
// network config. | ||
func UseZinkenNetworkConfig() { | ||
cfg := BeaconNetworkConfig().Copy() | ||
cfg.ContractDeploymentBlock = 3384340 | ||
cfg.ChainID = 5 | ||
cfg.NetworkID = 5 | ||
cfg.DepositContractAddress = "0x99F0Ec06548b086E46Cb0019C78D0b9b9F36cD53" | ||
// TODO(7390): Add Zinken bootnodes. | ||
cfg.BootstrapNodes = []string{} | ||
OverrideBeaconNetworkConfig(cfg) | ||
} | ||
|
||
// UseZinkenConfig sets the main beacon chain | ||
// config for Zinken. | ||
func UseZinkenConfig() { | ||
beaconConfig = ZinkenConfig() | ||
} | ||
|
||
// ZinkenConfig defines the config for the | ||
// Zinken testnet. | ||
func ZinkenConfig() *BeaconChainConfig { | ||
cfg := MainnetConfig().Copy() | ||
cfg.MinGenesisTime = 1601899200 | ||
cfg.GenesisDelay = 345600 | ||
cfg.GenesisForkVersion = []byte{0x00, 0x00, 0x00, 0x03} | ||
cfg.NetworkName = "zinken" | ||
cfg.MinGenesisActiveValidatorCount = 1024 | ||
return cfg | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters