Commit 0c4e305d authored by Axel Kingsley's avatar Axel Kingsley Committed by GitHub

Add Disclaimers at Config, and on Enable (#10709)

parent ec19e590
......@@ -247,6 +247,9 @@ func (bs *BatcherService) initChannelConfig(cfg *CLIConfig) error {
"max_channel_duration", cc.MaxChannelDuration,
"channel_timeout", cc.ChannelTimeout,
"sub_safety_margin", cc.SubSafetyMargin)
if bs.UsePlasma {
bs.Log.Warn("Plasma Mode is a Beta feature of the MIT licensed OP Stack. While it has received initial review from core contributors, it is still undergoing testing, and may have bugs or other issues.")
}
bs.ChannelConfig = cc
return nil
}
......
......@@ -174,5 +174,8 @@ func (cfg *Config) Check() error {
if err := cfg.Plasma.Check(); err != nil {
return fmt.Errorf("plasma config error: %w", err)
}
if cfg.Plasma.Enabled {
log.Warn("Plasma Mode is a Beta feature of the MIT licensed OP Stack. While it has received initial review from core contributors, it is still undergoing testing, and may have bugs or other issues.")
}
return nil
}
......@@ -22,7 +22,7 @@ func CLIFlags(envPrefix string, category string) []cli.Flag {
return []cli.Flag{
&cli.BoolFlag{
Name: EnabledFlagName,
Usage: "Enable plasma mode",
Usage: "Enable plasma mode\nPlasma Mode is a Beta feature of the MIT licensed OP Stack. While it has received initial review from core contributors, it is still undergoing testing, and may have bugs or other issues.",
Value: false,
EnvVars: plasmaEnv(envPrefix, "ENABLED"),
Category: category,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment