Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
ea817097
Commit
ea817097
authored
Jan 19, 2023
by
Mark Tyneway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l2geth: default gascap
Follows upstream by setting a default gascap for rpc
parent
138a6f0f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
good-paws-deliver.md
.changeset/good-paws-deliver.md
+5
-0
flags.go
l2geth/cmd/utils/flags.go
+1
-0
config.go
l2geth/eth/config.go
+1
-0
No files found.
.changeset/good-paws-deliver.md
0 → 100644
View file @
ea817097
---
'
@eth-optimism/l2geth'
:
patch
---
Use default cas gap of 25 million
l2geth/cmd/utils/flags.go
View file @
ea817097
...
@@ -516,6 +516,7 @@ var (
...
@@ -516,6 +516,7 @@ var (
}
}
RPCGlobalGasCap
=
cli
.
Uint64Flag
{
RPCGlobalGasCap
=
cli
.
Uint64Flag
{
Name
:
"rpc.gascap"
,
Name
:
"rpc.gascap"
,
Value
:
eth
.
DefaultConfig
.
RPCGasCap
.
Uint64
(),
Usage
:
"Sets a cap on gas that can be used in eth_call/estimateGas"
,
Usage
:
"Sets a cap on gas that can be used in eth_call/estimateGas"
,
}
}
RPCGlobalEVMTimeoutFlag
=
&
cli
.
DurationFlag
{
RPCGlobalEVMTimeoutFlag
=
&
cli
.
DurationFlag
{
...
...
l2geth/eth/config.go
View file @
ea817097
...
@@ -58,6 +58,7 @@ var DefaultConfig = Config{
...
@@ -58,6 +58,7 @@ var DefaultConfig = Config{
Recommit
:
3
*
time
.
Second
,
Recommit
:
3
*
time
.
Second
,
},
},
TxPool
:
core
.
DefaultTxPoolConfig
,
TxPool
:
core
.
DefaultTxPoolConfig
,
RPCGasCap
:
new
(
big
.
Int
)
.
SetUint64
(
25
_000_000
),
RPCEVMTimeout
:
5
*
time
.
Second
,
RPCEVMTimeout
:
5
*
time
.
Second
,
GPO
:
gasprice
.
Config
{
GPO
:
gasprice
.
Config
{
Blocks
:
20
,
Blocks
:
20
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment