mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-12 04:30:04 +00:00
Properly Use Demo Config (#3494)
This commit is contained in:
parent
c9f48373cb
commit
9683a83750
@ -83,8 +83,10 @@ func NewBeaconNode(ctx *cli.Context) (*BeaconNode, error) {
|
||||
if !ctx.GlobalBool(flags.NoCustomConfigFlag.Name) {
|
||||
log.Info("Using custom parameter configuration")
|
||||
if featureconfig.FeatureConfig().DemoConfig {
|
||||
log.Info("Using demo config")
|
||||
params.UseDemoBeaconConfig()
|
||||
} else {
|
||||
log.Info("Using minimal config")
|
||||
params.UseMinimalConfig()
|
||||
}
|
||||
}
|
||||
|
@ -57,6 +57,10 @@ func InitFeatureConfig(c *FeatureFlagConfig) {
|
||||
// on what flags are enabled for the beacon-chain client.
|
||||
func ConfigureBeaconFeatures(ctx *cli.Context) {
|
||||
cfg := &FeatureFlagConfig{}
|
||||
if ctx.GlobalBool(DemoConfigFlag.Name) {
|
||||
log.Warn("Using demo config")
|
||||
cfg.DemoConfig = true
|
||||
}
|
||||
if ctx.GlobalBool(NoGenesisDelayFlag.Name) {
|
||||
log.Warn("Using non standard genesis delay. This may cause problems in a multi-node environment.")
|
||||
cfg.NoGenesisDelay = true
|
||||
|
Loading…
Reference in New Issue
Block a user