Skip to content

Commit

Permalink
cmd/utils: maintain DefaultGasLimit to 8M for ETC (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
ziogaschr authored Mar 7, 2024
1 parent fecb9f3 commit aed6b58
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/utils/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -1865,6 +1865,11 @@ func setMiner(ctx *cli.Context, cfg *miner.Config) {
}
if ctx.IsSet(MinerGasLimitFlag.Name) {
cfg.GasCeil = ctx.Uint64(MinerGasLimitFlag.Name)
} else {
// For classic and mordor chains, maintain the gas limit at 8M
if ctx.Bool(ClassicFlag.Name) || ctx.Bool(MordorFlag.Name) {
cfg.GasCeil = 8000000
}
}
if ctx.IsSet(MinerGasPriceFlag.Name) {
cfg.GasPrice = flags.GlobalBig(ctx, MinerGasPriceFlag.Name)
Expand Down

0 comments on commit aed6b58

Please sign in to comment.