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
d9cb8dc2
Unverified
Commit
d9cb8dc2
authored
Feb 13, 2024
by
Sebastian Stammler
Committed by
GitHub
Feb 13, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
txmgr: Set default min tip cap and basefee to 1 GWei (#9502)
This will be enforced in newer geth versions.
parent
690d650f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
6 deletions
+16
-6
cli.go
op-service/txmgr/cli.go
+16
-6
No files found.
op-service/txmgr/cli.go
View file @
d9cb8dc2
...
...
@@ -58,6 +58,8 @@ type DefaultFlagValues struct {
SafeAbortNonceTooLowCount
uint64
FeeLimitMultiplier
uint64
FeeLimitThresholdGwei
float64
MinTipCapGwei
float64
MinBaseFeeGwei
float64
ResubmissionTimeout
time
.
Duration
NetworkTimeout
time
.
Duration
TxSendTimeout
time
.
Duration
...
...
@@ -71,6 +73,8 @@ var (
SafeAbortNonceTooLowCount
:
uint64
(
3
),
FeeLimitMultiplier
:
uint64
(
5
),
FeeLimitThresholdGwei
:
100.0
,
MinTipCapGwei
:
1.0
,
MinBaseFeeGwei
:
1.0
,
ResubmissionTimeout
:
48
*
time
.
Second
,
NetworkTimeout
:
10
*
time
.
Second
,
TxSendTimeout
:
0
*
time
.
Second
,
...
...
@@ -82,6 +86,8 @@ var (
SafeAbortNonceTooLowCount
:
uint64
(
3
),
FeeLimitMultiplier
:
uint64
(
5
),
FeeLimitThresholdGwei
:
100.0
,
MinTipCapGwei
:
1.0
,
MinBaseFeeGwei
:
1.0
,
ResubmissionTimeout
:
24
*
time
.
Second
,
NetworkTimeout
:
10
*
time
.
Second
,
TxSendTimeout
:
2
*
time
.
Minute
,
...
...
@@ -138,16 +144,18 @@ func CLIFlagsWithDefaults(envPrefix string, defaults DefaultFlagValues) []cli.Fl
Value
:
defaults
.
FeeLimitThresholdGwei
,
EnvVars
:
prefixEnvVars
(
"TXMGR_FEE_LIMIT_THRESHOLD"
),
},
&
cli
.
Float64Flag
{
Name
:
MinBaseFeeFlagName
,
Usage
:
"Enforces a minimum base fee (in GWei) to assume when determining tx fees. Off by default."
,
EnvVars
:
prefixEnvVars
(
"TXMGR_MIN_BASEFEE"
),
},
&
cli
.
Float64Flag
{
Name
:
MinTipCapFlagName
,
Usage
:
"Enforces a minimum tip cap (in GWei) to use when determining tx fees. Off by default."
,
Usage
:
"Enforces a minimum tip cap (in GWei) to use when determining tx fees. 1 GWei by default."
,
Value
:
defaults
.
MinTipCapGwei
,
EnvVars
:
prefixEnvVars
(
"TXMGR_MIN_TIP_CAP"
),
},
&
cli
.
Float64Flag
{
Name
:
MinBaseFeeFlagName
,
Usage
:
"Enforces a minimum base fee (in GWei) to assume when determining tx fees. 1 GWei by default."
,
Value
:
defaults
.
MinBaseFeeGwei
,
EnvVars
:
prefixEnvVars
(
"TXMGR_MIN_BASEFEE"
),
},
&
cli
.
DurationFlag
{
Name
:
ResubmissionTimeoutFlagName
,
Usage
:
"Duration we will wait before resubmitting a transaction to L1"
,
...
...
@@ -209,6 +217,8 @@ func NewCLIConfig(l1RPCURL string, defaults DefaultFlagValues) CLIConfig {
SafeAbortNonceTooLowCount
:
defaults
.
SafeAbortNonceTooLowCount
,
FeeLimitMultiplier
:
defaults
.
FeeLimitMultiplier
,
FeeLimitThresholdGwei
:
defaults
.
FeeLimitThresholdGwei
,
MinTipCapGwei
:
defaults
.
MinTipCapGwei
,
MinBaseFeeGwei
:
defaults
.
MinBaseFeeGwei
,
ResubmissionTimeout
:
defaults
.
ResubmissionTimeout
,
NetworkTimeout
:
defaults
.
NetworkTimeout
,
TxSendTimeout
:
defaults
.
TxSendTimeout
,
...
...
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