default gas price flag

This commit is contained in:
Jeffery Walsh 2024-06-26 13:55:41 -07:00
parent 9298d2db88
commit 797cb2a7e7

View file

@ -870,6 +870,11 @@ var (
Value: ethconfig.Defaults.GPO.IgnorePrice.Int64(),
Category: flags.GasPriceCategory,
}
GpoDefaultGasPriceFlag = &cli.Int64Flag{
Name: "gpo.defaultprice",
Usage: "Default gas price",
Category: flags.GasPriceCategory,
}
// Metrics flags
MetricsEnabledFlag = &cli.BoolFlag{
@ -1505,6 +1510,9 @@ func setGPO(ctx *cli.Context, cfg *gasprice.Config) {
if ctx.IsSet(GpoIgnoreGasPriceFlag.Name) {
cfg.IgnorePrice = big.NewInt(ctx.Int64(GpoIgnoreGasPriceFlag.Name))
}
if ctx.IsSet(GpoDefaultGasPriceFlag.Name) {
cfg.Default = big.NewInt(ctx.Int64(GpoDefaultGasPriceFlag.Name))
}
}
func setTxPool(ctx *cli.Context, cfg *legacypool.Config) {