Commit c4498b5a authored by Mark Tyneway's avatar Mark Tyneway Committed by GitHub

Merge pull request #1263 from ethereum-optimism/fix/l2geth-threshold-flag

l2geth: fix bad flag parsing
parents 7d083a21 53b37978
---
'@eth-optimism/l2geth': patch
---
Fixes the flags to use float64 instead of bools for the `--rollup.feethresholddown` and `-rollup.feethresholdup` config options
...@@ -898,12 +898,12 @@ var ( ...@@ -898,12 +898,12 @@ var (
Usage: "Disable transactions with 0 gas price", Usage: "Disable transactions with 0 gas price",
EnvVar: "ROLLUP_ENFORCE_FEES", EnvVar: "ROLLUP_ENFORCE_FEES",
} }
RollupFeeThresholdDownFlag = cli.BoolFlag{ RollupFeeThresholdDownFlag = cli.Float64Flag{
Name: "rollup.feethresholddown", Name: "rollup.feethresholddown",
Usage: "Allow txs with fees below the current fee up to this amount, must be < 1", Usage: "Allow txs with fees below the current fee up to this amount, must be < 1",
EnvVar: "ROLLUP_FEE_THRESHOLD_DOWN", EnvVar: "ROLLUP_FEE_THRESHOLD_DOWN",
} }
RollupFeeThresholdUpFlag = cli.BoolFlag{ RollupFeeThresholdUpFlag = cli.Float64Flag{
Name: "rollup.feethresholdup", Name: "rollup.feethresholdup",
Usage: "Allow txs with fees above the current fee up to this amount, must be > 1", Usage: "Allow txs with fees above the current fee up to this amount, must be > 1",
EnvVar: "ROLLUP_FEE_THRESHOLD_UP", EnvVar: "ROLLUP_FEE_THRESHOLD_UP",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment