Skip to content

gas-oracle: use configured gas-price#1574

Merged
tynes merged 1 commit intoexperimentalfrom
gas-oracle/use-cfg-gasprice
Oct 14, 2021
Merged

gas-oracle: use configured gas-price#1574
tynes merged 1 commit intoexperimentalfrom
gas-oracle/use-cfg-gasprice

Conversation

@tynes
Copy link
Copy Markdown
Contributor

@tynes tynes commented Oct 14, 2021

Description

Use the configured gas price when updating the L1 base fee.
In production, this should be set to 0 and the sequencer
will allow for transactions with 0 gas price when they are
from the owner of the gas price oracle. This prevents the
need to manage funds on L2 for the gas-oracle

Fixes ENG-1487

Use the configured gas price when updating the L1 base fee.
In production, this should be set to 0 and the sequencer
will allow for transactions with 0 gas price when they are
from the owner of the gas price oracle. This prevents the
need to manage funds on L2 for the `gas-oracle`
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Oct 14, 2021

🦋 Changeset detected

Latest commit: 1fb36a2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@eth-optimism/gas-oracle Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Oct 14, 2021

Codecov Report

Merging #1574 (1fb36a2) into experimental (b690575) will decrease coverage by 0.57%.
The diff coverage is 90.90%.

Impacted file tree graph

@@               Coverage Diff                @@
##           experimental    #1574      +/-   ##
================================================
- Coverage         74.20%   73.62%   -0.58%     
================================================
  Files                67       67              
  Lines              2210     2207       -3     
  Branches            321      324       +3     
================================================
- Hits               1640     1625      -15     
- Misses              570      582      +12     
Flag Coverage Δ
batch-submitter 61.74% <ø> (ø)
contracts 90.44% <90.90%> (-0.74%) ⬇️
core-utils 55.73% <ø> (-0.77%) ⬇️
data-transport-layer 38.23% <ø> (ø)
message-relayer 83.17% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
packages/batch-submitter/hardhat.config.ts 100.00% <ø> (ø)
packages/core-utils/src/common/hex-strings.ts 86.11% <ø> (-13.89%) ⬇️
packages/message-relayer/hardhat.config.ts 100.00% <ø> (ø)
.../contracts/L1/rollup/CanonicalTransactionChain.sol 85.04% <90.47%> (-2.89%) ⬇️
.../contracts/L1/messaging/L1CrossDomainMessenger.sol 96.77% <100.00%> (ø)
...acts/contracts/L1/rollup/ChainStorageContainer.sol 70.00% <0.00%> (-10.00%) ⬇️
...contracts/contracts/libraries/utils/Lib_Buffer.sol 92.85% <0.00%> (-7.15%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b5ae71a...1fb36a2. Read the comment docs.

Copy link
Copy Markdown
Contributor

@karlfloersch karlfloersch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding is that by setting opts.GasPrice explicitly it will not default to generating EIP1559 txs -- a tx type we do not currently support.

LGTM!

@tynes tynes merged commit 821e271 into experimental Oct 14, 2021
@tynes tynes deleted the gas-oracle/use-cfg-gasprice branch October 14, 2021 18:23
theochap pushed a commit that referenced this pull request Dec 10, 2025
### Description

Implements peer protection rpc handling.

Closes #1573
Closes #1574

---------

Co-authored-by: clabby <ben@clab.by>
theochap pushed a commit that referenced this pull request Jan 14, 2026
### Description

Implements peer protection rpc handling.

Closes #1573
Closes #1574

---------

Co-authored-by: clabby <ben@clab.by>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants