diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 46d380b98499..baf0c8f339f0 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -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) {