diff --git a/.changeset/good-paws-deliver.md b/.changeset/good-paws-deliver.md new file mode 100644 index 000000000000..77ed21b0fb78 --- /dev/null +++ b/.changeset/good-paws-deliver.md @@ -0,0 +1,5 @@ +--- +'@eth-optimism/l2geth': patch +--- + +Use default cas gap of 25 million diff --git a/l2geth/cmd/utils/flags.go b/l2geth/cmd/utils/flags.go index 27c838fa0267..99d09e4482ab 100644 --- a/l2geth/cmd/utils/flags.go +++ b/l2geth/cmd/utils/flags.go @@ -516,6 +516,7 @@ var ( } RPCGlobalGasCap = cli.Uint64Flag{ Name: "rpc.gascap", + Value: eth.DefaultConfig.RPCGasCap.Uint64(), Usage: "Sets a cap on gas that can be used in eth_call/estimateGas", } RPCGlobalEVMTimeoutFlag = &cli.DurationFlag{ diff --git a/l2geth/eth/config.go b/l2geth/eth/config.go index 9f0c85380017..c8eef4adde5b 100644 --- a/l2geth/eth/config.go +++ b/l2geth/eth/config.go @@ -58,6 +58,7 @@ var DefaultConfig = Config{ Recommit: 3 * time.Second, }, TxPool: core.DefaultTxPoolConfig, + RPCGasCap: new(big.Int).SetUint64(25_000_000), RPCEVMTimeout: 5 * time.Second, GPO: gasprice.Config{ Blocks: 20,