mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
default gas price flag
This commit is contained in:
parent
9298d2db88
commit
797cb2a7e7
1 changed files with 8 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue