feat(server/v2,upgrade): add skip upgrade flag (#22682)
This commit is contained in:
+3
-2
@@ -10,8 +10,9 @@ func prefix(f string) string {
|
||||
}
|
||||
|
||||
var (
|
||||
FlagMinGasPrices = prefix("minimum-gas-prices")
|
||||
FlagCPUProfiling = prefix("cpu-profile")
|
||||
FlagMinGasPrices = prefix("minimum-gas-prices")
|
||||
FlagCPUProfiling = prefix("cpu-profile")
|
||||
FlagUnsafeSkipUpgrades = prefix("unsafe-skip-upgrades")
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -184,6 +184,7 @@ func (s *Server[T]) StartCmdFlags() *pflag.FlagSet {
|
||||
flags := pflag.NewFlagSet(s.Name(), pflag.ExitOnError)
|
||||
flags.String(FlagMinGasPrices, "", "Minimum gas prices to accept for transactions; Any fee in a tx must meet this minimum (e.g. 0.01photino;0.0001stake)")
|
||||
flags.String(FlagCPUProfiling, "", "Enable CPU profiling and write to the specified file")
|
||||
flags.IntSlice(FlagUnsafeSkipUpgrades, []int{}, "Skip a set of upgrade heights to continue the old binary")
|
||||
|
||||
return flags
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user