mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 04:54:05 -05:00
--chain-config-file: Do not use any more mainnet boot nodes. (#15460)
This commit is contained in:
2
changelog/manu-bootnodes.md
Normal file
2
changelog/manu-bootnodes.md
Normal file
@@ -0,0 +1,2 @@
|
||||
### Fixed
|
||||
- `--chain-config-file`: Do not use any more mainnet boot nodes.
|
||||
@@ -156,7 +156,8 @@ func configureTestnet(ctx *cli.Context) error {
|
||||
params.UseHoodiNetworkConfig()
|
||||
} else {
|
||||
if ctx.IsSet(cmd.ChainConfigFileFlag.Name) {
|
||||
log.Warn("Running on custom Ethereum network specified in a chain configuration yaml file")
|
||||
log.Warning("Running on custom Ethereum network specified in a chain configuration YAML file")
|
||||
params.UseCustomNetworkConfig()
|
||||
} else {
|
||||
log.Info("Running on Ethereum Mainnet")
|
||||
}
|
||||
@@ -168,11 +169,11 @@ func configureTestnet(ctx *cli.Context) error {
|
||||
}
|
||||
|
||||
// Insert feature flags within the function to be enabled for Sepolia testnet.
|
||||
func applySepoliaFeatureFlags(ctx *cli.Context) {
|
||||
func applySepoliaFeatureFlags(_ *cli.Context) {
|
||||
}
|
||||
|
||||
// Insert feature flags within the function to be enabled for Holesky testnet.
|
||||
func applyHoleskyFeatureFlags(ctx *cli.Context) {
|
||||
func applyHoleskyFeatureFlags(_ *cli.Context) {
|
||||
}
|
||||
|
||||
// ConfigureBeaconChain sets the global config based
|
||||
|
||||
@@ -14,6 +14,7 @@ go_library(
|
||||
"mainnet_config.go",
|
||||
"minimal_config.go",
|
||||
"network_config.go",
|
||||
"testnet_custom_network_config.go",
|
||||
"testnet_e2e_config.go",
|
||||
"testnet_holesky_config.go",
|
||||
"testnet_hoodi_config.go",
|
||||
|
||||
9
config/params/testnet_custom_network_config.go
Normal file
9
config/params/testnet_custom_network_config.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package params
|
||||
|
||||
func UseCustomNetworkConfig() {
|
||||
cfg := BeaconNetworkConfig().Copy()
|
||||
cfg.ContractDeploymentBlock = 0
|
||||
cfg.BootstrapNodes = []string{}
|
||||
|
||||
OverrideBeaconNetworkConfig(cfg)
|
||||
}
|
||||
Reference in New Issue
Block a user